summaryrefslogtreecommitdiffstats
path: root/tests/run-make/cross-lang-lto/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/cross-lang-lto/lib.rs')
-rw-r--r--tests/run-make/cross-lang-lto/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-make/cross-lang-lto/lib.rs b/tests/run-make/cross-lang-lto/lib.rs
new file mode 100644
index 000000000..94cfef6ad
--- /dev/null
+++ b/tests/run-make/cross-lang-lto/lib.rs
@@ -0,0 +1,4 @@
+#[no_mangle]
+pub extern "C" fn foo() {
+ println!("abc");
+}