From c8c9eac8c705a1677c306d94ab05459a593e3e1a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 20 Oct 2021 14:03:59 -0700 Subject: expr: Fix octal escapes followed by octal digits --- test/string-octal.c | 1 + test/string-octal.qbe | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 test/string-octal.c create mode 100644 test/string-octal.qbe (limited to 'test') diff --git a/test/string-octal.c b/test/string-octal.c new file mode 100644 index 0000000..85347fd --- /dev/null +++ b/test/string-octal.c @@ -0,0 +1 @@ +char *s = "\1\12\123\1234"; diff --git a/test/string-octal.qbe b/test/string-octal.qbe new file mode 100644 index 0000000..f4090fa --- /dev/null +++ b/test/string-octal.qbe @@ -0,0 +1,2 @@ +data $.Lstring.1 = align 1 { b "\001\012SS4\000", } +export data $s = align 8 { l $.Lstring.1, } -- cgit v1.2.3