summaryrefslogtreecommitdiff
path: root/test/lit/passes
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-09-22 16:26:11 -0500
committerGitHub <noreply@github.com>2022-09-22 14:26:11 -0700
commitb1ba25732c1a02ae3da726c4b01ca3825ef969ef (patch)
treef3d6368fabea900d1a4dfa0671dba7df74414e0f /test/lit/passes
parent27d0c232bb1d6e4f2cb22fbe8511829730457dbd (diff)
downloadbinaryen-b1ba25732c1a02ae3da726c4b01ca3825ef969ef.tar.gz
binaryen-b1ba25732c1a02ae3da726c4b01ca3825ef969ef.tar.bz2
binaryen-b1ba25732c1a02ae3da726c4b01ca3825ef969ef.zip
Correctly handle escapes in string constants (#5070)
Previously when we parsed `string.const` payloads in the text format we were using the text strings directly instead of un-escaping them. Fix that parsing, and while we're editing the code, also add support for the `\r` escape allowed by the spec. Remove a spurious nested anonymous namespace and spurious `static`s in Print.cpp as well.
Diffstat (limited to 'test/lit/passes')
-rw-r--r--test/lit/passes/O4_disable-bulk-memory.wast2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit/passes/O4_disable-bulk-memory.wast b/test/lit/passes/O4_disable-bulk-memory.wast
index c0bcc07a9..c806bf867 100644
--- a/test/lit/passes/O4_disable-bulk-memory.wast
+++ b/test/lit/passes/O4_disable-bulk-memory.wast
@@ -64,7 +64,7 @@
;; CHECK: (global $global$5 (mut i32) (i32.const 0))
- ;; CHECK: (data (i32.const 8) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
+ ;; CHECK: (data (i32.const 8) "\r\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
;; CHECK: (data (i32.const 40) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")