summaryrefslogtreecommitdiffstats
path: root/tests/run-make/lto-smoke-c/foo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/lto-smoke-c/foo.rs')
-rw-r--r--tests/run-make/lto-smoke-c/foo.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-make/lto-smoke-c/foo.rs b/tests/run-make/lto-smoke-c/foo.rs
new file mode 100644
index 000000000..2e59432cd
--- /dev/null
+++ b/tests/run-make/lto-smoke-c/foo.rs
@@ -0,0 +1,4 @@
+#![crate_type = "staticlib"]
+
+#[no_mangle]
+pub extern "C" fn foo() {}