summaryrefslogtreecommitdiff
path: root/test/lit/wasm-emscripten-finalize/em_js.wat
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/wasm-emscripten-finalize/em_js.wat')
-rw-r--r--test/lit/wasm-emscripten-finalize/em_js.wat25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/lit/wasm-emscripten-finalize/em_js.wat b/test/lit/wasm-emscripten-finalize/em_js.wat
deleted file mode 100644
index b10774ed3..000000000
--- a/test/lit/wasm-emscripten-finalize/em_js.wat
+++ /dev/null
@@ -1,25 +0,0 @@
-;; Test that funcions exported with __em_js are correctly removed
-;; once they strings they return are extracted.
-
-;; RUN: wasm-emscripten-finalize %s -S | filecheck %s
-
-;; CHECK: "emJsFuncs": {
-;; CHECK-NEXT: "bar": "more JS string data",
-;; CHECK-NEXT: "baz": "Only em_js strings here",
-;; CHECK-NEXT: "foo": "some JS string data"
-;; CHECK-NEXT: },
-
-(module
- (memory 1 1)
- (data (i32.const 1024) "some JS string data\00xxx")
- (data (i32.const 512) "Only em_js strings here\00")
- (data (i32.const 2048) "more JS string data\00yyy")
- (export "__em_js__foo" (global $__em_js__foo))
- (export "__em_js__bar" (global $bar))
- (export "__em_js__baz" (global $baz))
- ;; Name matches export name
- (global $__em_js__foo i32 (i32.const 1024))
- ;; Name does not match export name
- (global $bar i32 (i32.const 2048))
- (global $baz i32 (i32.const 512))
-)