2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
|
|
|
//@ dont-check-compiler-stderr (rust-lang/rust#54222)
|
2018-09-14 10:57:42 +00:00
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: -lrust_test_helpers
|
2017-02-23 19:25:26 +00:00
|
|
|
|
2017-06-03 21:54:08 +00:00
|
|
|
#[link(name = "rust_test_helpers", kind = "static")]
|
2017-02-23 19:25:26 +00:00
|
|
|
extern "C" {
|
2017-06-03 21:54:08 +00:00
|
|
|
pub fn rust_dbg_extern_identity_u32(x: u32) -> u32;
|
2017-02-23 19:25:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
2017-06-03 21:54:08 +00:00
|
|
|
rust_dbg_extern_identity_u32(42);
|
2017-02-23 19:25:26 +00:00
|
|
|
}
|
|
|
|
}
|