diff options
Diffstat (limited to 'tests/ui/abi/cross-crate/auxiliary')
-rw-r--r-- | tests/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs b/tests/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs new file mode 100644 index 000000000..5cbf8093c --- /dev/null +++ b/tests/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs @@ -0,0 +1,9 @@ +#![crate_name = "anonexternmod"] +#![feature(rustc_private)] + +extern crate libc; + +#[link(name = "rust_test_helpers", kind = "static")] +extern "C" { + pub fn rust_get_test_int() -> libc::intptr_t; +} |