2 #![allow(non_snake_case)]
4 // ignore-wasm32-bare no libc to test ffi with
8 struct LARGE_INTEGER_U {
13 #[derive(Clone, Copy)]
16 __unnamed__: LARGE_INTEGER_U,
21 #[link(name = "rust_test_helpers", kind = "static")]
23 fn increment_all_parts(_: LARGE_INTEGER) -> LARGE_INTEGER;
28 let mut li = LARGE_INTEGER { QuadPart: 0 };
29 let li_c = increment_all_parts(li);
30 li.__unnamed__.LowPart += 1;
31 li.__unnamed__.HighPart += 1;
35 assert_eq!(li.QuadPart, li_c.QuadPart);