diff options
Diffstat (limited to 'tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs')
-rw-r--r-- | tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs b/tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs new file mode 100644 index 000000000..77e41e237 --- /dev/null +++ b/tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs @@ -0,0 +1,10 @@ +#[link(name = "native_dep.ext", kind = "static", modifiers = "+verbatim")] +extern "C" { + fn native_f1() -> i32; +} + +pub fn rust_dep() { + unsafe { + assert!(native_f1() == 1); + } +} |