diff --git a/test/core/annotations.wast b/test/core/annotations.wast index 181e59a231..ead48a4975 100644 --- a/test/core/annotations.wast +++ b/test/core/annotations.wast @@ -90,6 +90,7 @@ (assert_malformed (module quote "(@x \"") "unclosed string") (assert_malformed (module quote "(@x \")") "unclosed string") +(assert_malformed (module quote "(@a (; x") "unclosed comment") (assert_malformed (module quote "((@a)@b)") "unknown operator") (assert_malformed (module quote "(func $(@a))") "empty identifier") diff --git a/test/core/comments.wast b/test/core/comments.wast index 5ef64a6c1e..70a1b6f3fe 100644 Binary files a/test/core/comments.wast and b/test/core/comments.wast differ diff --git a/test/core/token.wast b/test/core/token.wast index 44e41f22bc..496bd2d501 100644 --- a/test/core/token.wast +++ b/test/core/token.wast @@ -302,3 +302,10 @@ ) "unknown operator" ) + +;; Control characters in strings + +(assert_malformed + (module quote "(memory 1) (data (i32.const 0) \"a\01b\")") + "illegal control character" +)