summaryrefslogtreecommitdiff
path: root/test/lit/parse-bad-identifier.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/parse-bad-identifier.wast')
-rw-r--r--test/lit/parse-bad-identifier.wast8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lit/parse-bad-identifier.wast b/test/lit/parse-bad-identifier.wast
new file mode 100644
index 000000000..984e7e230
--- /dev/null
+++ b/test/lit/parse-bad-identifier.wast
@@ -0,0 +1,8 @@
+;; RUN: not wasm-opt %s -S -o - 2>&1 | filecheck %s
+
+;; CHECK: 7:10: error: expected valtype
+
+(module
+ ;; String identifiers must still be UTF-8.
+ (global $"\ff" i32 (i32.const 0))
+)