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