summaryrefslogtreecommitdiff
path: root/test/lit/unicode-filenames.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/unicode-filenames.wast')
-rw-r--r--test/lit/unicode-filenames.wast21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/lit/unicode-filenames.wast b/test/lit/unicode-filenames.wast
new file mode 100644
index 000000000..f30ad9c09
--- /dev/null
+++ b/test/lit/unicode-filenames.wast
@@ -0,0 +1,21 @@
+;; RUN: wasm-as %s -o %t-❤.wasm --source-map %t-🗺️.map
+;; RUN: cat %t-🗺️.map | filecheck %s --check-prefix SOURCEMAP
+;; RUN: wasm-opt %t-❤.wasm -o %t-🤬.wasm --emit-js-wrapper %t-❤.js --input-source-map %t-🗺️.map --output-source-map %t-🗺️.out.map
+;; RUN: cat %t-🗺️.out.map | filecheck %s --check-prefix SOURCEMAP
+;; RUN: wasm-dis %t-🤬.wasm | filecheck %s --check-prefix MODULE
+
+;; MODULE: i32.add
+;; SOURCEMAP: src.cpp
+
+(module
+ (type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
+ (memory $0 256 256)
+ (export "add" (func $add))
+ (func $add (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
+ (i32.add
+ ;;@ src.cpp:10:1
+ (local.get $0)
+ (local.get $1)
+ )
+ )
+)