summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-64153/upstream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/issue-64153/upstream.rs')
-rw-r--r--tests/run-make/issue-64153/upstream.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make/issue-64153/upstream.rs b/tests/run-make/issue-64153/upstream.rs
new file mode 100644
index 000000000..861a00298
--- /dev/null
+++ b/tests/run-make/issue-64153/upstream.rs
@@ -0,0 +1,6 @@
+// Make this function extern "C", public, and no-mangle, so that it gets
+// exported from the downstream staticlib.
+#[no_mangle]
+pub extern "C" fn issue64153_test_function(x: u32) -> u32 {
+ x + 1
+}