]> git.lizzy.rs Git - rust.git/blob - tests/ui/abi/anon-extern-mod.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / abi / anon-extern-mod.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3 // ignore-wasm32-bare no libc to test ffi with
4
5 #![feature(rustc_private)]
6
7 extern crate libc;
8
9 #[link(name = "rust_test_helpers", kind = "static")]
10 extern "C" {
11     fn rust_get_test_int() -> libc::intptr_t;
12 }
13
14 pub fn main() {
15     unsafe {
16         let _ = rust_get_test_int();
17     }
18 }