summaryrefslogtreecommitdiff
path: root/test/wast2json/test-invalid-quoted-modules.txt
diff options
context:
space:
mode:
authorKeith Winstein <208955+keithw@users.noreply.github.com>2024-11-11 21:10:52 -0800
committerGitHub <noreply@github.com>2024-11-12 05:10:52 +0000
commit958d0a72030227bf3133c8b99c7c670bcdbc7636 (patch)
tree626768a14e0bf13fbc9f144f2f38e6fec076705c /test/wast2json/test-invalid-quoted-modules.txt
parent94c25a93c5ee81939bd1acfee06808f6745883ce (diff)
downloadwabt-958d0a72030227bf3133c8b99c7c670bcdbc7636.tar.gz
wabt-958d0a72030227bf3133c8b99c7c670bcdbc7636.tar.bz2
wabt-958d0a72030227bf3133c8b99c7c670bcdbc7636.zip
wast-parser.cc: Fix a crash from failing (module quote ...) (#2509)
Diffstat (limited to 'test/wast2json/test-invalid-quoted-modules.txt')
-rw-r--r--test/wast2json/test-invalid-quoted-modules.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/wast2json/test-invalid-quoted-modules.txt b/test/wast2json/test-invalid-quoted-modules.txt
new file mode 100644
index 00000000..c72fa89c
--- /dev/null
+++ b/test/wast2json/test-invalid-quoted-modules.txt
@@ -0,0 +1,8 @@
+;;; TOOL: wast2json
+;;; ERROR: 1
+(module quote "invalid")
+(;; STDERR ;;;
+out/test/wast2json/test-invalid-quoted-modules.txt:3:2: error: error in quoted module: @0x100000001: unexpected token "invalid", expected a module field or a module.
+(module quote "invalid")
+ ^^^^^^
+;;; STDERR ;;)