From 231137aceb65c4b1ca0b54dd599f1f8b8c5c9342 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 27 Apr 2019 00:25:13 -0700 Subject: init: Allow string literal initializers to be in braces --- test/initializer-string-braces.c | 1 + test/initializer-string-braces.qbe | 1 + 2 files changed, 2 insertions(+) create mode 100644 test/initializer-string-braces.c create mode 100644 test/initializer-string-braces.qbe (limited to 'test') diff --git a/test/initializer-string-braces.c b/test/initializer-string-braces.c new file mode 100644 index 0000000..e540d5e --- /dev/null +++ b/test/initializer-string-braces.c @@ -0,0 +1 @@ +char s[] = {"abc"}; diff --git a/test/initializer-string-braces.qbe b/test/initializer-string-braces.qbe new file mode 100644 index 0000000..46be123 --- /dev/null +++ b/test/initializer-string-braces.qbe @@ -0,0 +1 @@ +export data $s = align 1 { b "abc", z 1, } -- cgit v1.2.3