summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/wasm-custom-section/bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-make/wasm-custom-section/bar.rs')
-rw-r--r--src/test/run-make/wasm-custom-section/bar.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-make/wasm-custom-section/bar.rs b/src/test/run-make/wasm-custom-section/bar.rs
new file mode 100644
index 000000000..c95f3e143
--- /dev/null
+++ b/src/test/run-make/wasm-custom-section/bar.rs
@@ -0,0 +1,13 @@
+#![crate_type = "cdylib"]
+#![deny(warnings)]
+
+extern crate foo;
+
+#[link_section = "foo"]
+pub static A: [u8; 2] = [5, 6];
+
+#[link_section = "baz"]
+pub static B: [u8; 2] = [7, 8];
+
+#[no_mangle]
+pub extern fn foo() {}