diff options
Diffstat (limited to 'tests/run-make/wasm-custom-section/bar.rs')
-rw-r--r-- | tests/run-make/wasm-custom-section/bar.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run-make/wasm-custom-section/bar.rs b/tests/run-make/wasm-custom-section/bar.rs new file mode 100644 index 000000000..c95f3e143 --- /dev/null +++ b/tests/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() {} |