diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs new file mode 100644 index 000000000..f70bb3382 --- /dev/null +++ b/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs @@ -0,0 +1,10 @@ +#![crate_type = "rlib"] + +#[link(name = "foo", kind = "static")] +extern "C" { + fn foo() -> i32; +} + +pub fn foo1() -> i32 { + unsafe { foo() } +} |