diff options
Diffstat (limited to 'tests/run-make/wasm-symbols-not-exported/foo.rs')
-rw-r--r-- | tests/run-make/wasm-symbols-not-exported/foo.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run-make/wasm-symbols-not-exported/foo.rs b/tests/run-make/wasm-symbols-not-exported/foo.rs new file mode 100644 index 000000000..d46baee01 --- /dev/null +++ b/tests/run-make/wasm-symbols-not-exported/foo.rs @@ -0,0 +1,7 @@ +#![crate_type = "cdylib"] + +#[no_mangle] +pub extern fn foo() { + println!("foo"); + panic!("test"); +} |