]>
Commit | Line | Data |
---|---|---|
223e47cc | 1 | // aux-build:foreign_lib.rs |
abe05a73 | 2 | // ignore-wasm32-bare no libc to test ffi with |
223e47cc LB |
3 | |
4 | // The purpose of this test is to check that we can | |
5 | // successfully (and safely) invoke external, cdecl | |
6 | // functions from outside the crate. | |
7 | ||
c34b1796 AL |
8 | // pretty-expanded FIXME #23616 |
9 | ||
1a4d82fc | 10 | extern crate foreign_lib; |
223e47cc LB |
11 | |
12 | pub fn main() { | |
970d7e83 | 13 | unsafe { |
1a4d82fc | 14 | let _foo = foreign_lib::rustrt::rust_get_test_int(); |
970d7e83 | 15 | } |
223e47cc | 16 | } |