]>
git.proxmox.com Git - rustc.git/blob - tests/run-make/extern-fn-with-extern-types/test.rs
1 #![feature(extern_types)]
3 #[link(name = "ctest", kind = "static")]
7 fn data_create(magic
: u32) -> *mut data
;
8 fn data_get(data
: *mut data
) -> u32;
11 const MAGIC
: u32 = 0xdeadbeef;
14 let data
= data_create(MAGIC
);
15 assert_eq
!(data_get(data
), MAGIC
);