mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
23 lines
396 B
Rust
23 lines
396 B
Rust
// run-pass
|
|
// ABI is cdecl by default
|
|
|
|
// ignore-wasm32-bare no libc to test ffi with
|
|
// pretty-expanded FIXME #23616
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
mod rustrt {
|
|
extern crate libc;
|
|
|
|
#[link(name = "rust_test_helpers", kind = "static")]
|
|
extern "C" {
|
|
pub fn rust_get_test_int() -> libc::intptr_t;
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
unsafe {
|
|
rustrt::rust_get_test_int();
|
|
}
|
|
}
|