summaryrefslogtreecommitdiffstats
path: root/tests/run-make/wasm-symbols-not-imported/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/wasm-symbols-not-imported/Makefile')
-rw-r--r--tests/run-make/wasm-symbols-not-imported/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run-make/wasm-symbols-not-imported/Makefile b/tests/run-make/wasm-symbols-not-imported/Makefile
new file mode 100644
index 000000000..dc7618c19
--- /dev/null
+++ b/tests/run-make/wasm-symbols-not-imported/Makefile
@@ -0,0 +1,13 @@
+include ../../run-make-fulldeps/tools.mk
+
+# only-wasm32-bare
+
+all:
+ $(RUSTC) foo.rs --target wasm32-unknown-unknown
+ $(NODE) verify-no-imports.js $(TMPDIR)/foo.wasm
+ $(RUSTC) foo.rs --target wasm32-unknown-unknown -C lto
+ $(NODE) verify-no-imports.js $(TMPDIR)/foo.wasm
+ $(RUSTC) foo.rs --target wasm32-unknown-unknown -O
+ $(NODE) verify-no-imports.js $(TMPDIR)/foo.wasm
+ $(RUSTC) foo.rs --target wasm32-unknown-unknown -O -C lto
+ $(NODE) verify-no-imports.js $(TMPDIR)/foo.wasm