summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-47384/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/issue-47384/lib.rs')
-rw-r--r--tests/run-make/issue-47384/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run-make/issue-47384/lib.rs b/tests/run-make/issue-47384/lib.rs
new file mode 100644
index 000000000..99508bcda
--- /dev/null
+++ b/tests/run-make/issue-47384/lib.rs
@@ -0,0 +1,12 @@
+mod foo {
+ #[link_section = ".rodata.STATIC"]
+ #[used]
+ static STATIC: [u32; 10] = [1; 10];
+}
+
+mod bar {
+ #[no_mangle]
+ extern "C" fn bar() -> i32 {
+ 0
+ }
+}