rust/tests/ui/abi/lib-defaults.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
308 B
Rust
Raw Normal View History

//@ run-pass
//@ dont-check-compiler-stderr (rust-lang/rust#54222)
//@ compile-flags: -lrust_test_helpers
2017-02-23 19:25:26 +00:00
#[link(name = "rust_test_helpers", kind = "static")]
2017-02-23 19:25:26 +00:00
extern "C" {
pub fn rust_dbg_extern_identity_u32(x: u32) -> u32;
2017-02-23 19:25:26 +00:00
}
fn main() {
unsafe {
rust_dbg_extern_identity_u32(42);
2017-02-23 19:25:26 +00:00
}
}