]> git.proxmox.com Git - rustc.git/blame - src/test/ui/abi/foreign/foreign-no-abi.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / abi / foreign / foreign-no-abi.rs
CommitLineData
b7449926 1// run-pass
223e47cc
LB
2// ABI is cdecl by default
3
abe05a73 4// ignore-wasm32-bare no libc to test ffi with
c34b1796
AL
5// pretty-expanded FIXME #23616
6
0731742a 7#![feature(rustc_private)]
c34b1796 8
223e47cc 9mod rustrt {
1a4d82fc 10 extern crate libc;
970d7e83 11
476ff2be 12 #[link(name = "rust_test_helpers", kind = "static")]
5869c6ff 13 extern "C" {
1a4d82fc 14 pub fn rust_get_test_int() -> libc::intptr_t;
223e47cc
LB
15 }
16}
17
18pub fn main() {
19 unsafe {
1a4d82fc 20 rustrt::rust_get_test_int();
223e47cc
LB
21 }
22}