diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-27 00:25:13 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-27 00:38:13 -0700 |
commit | 231137aceb65c4b1ca0b54dd599f1f8b8c5c9342 (patch) | |
tree | 4dec75cceb29ea179eaefd2d39cb82f4936b03a9 /test | |
parent | bdefdc936a6c2be8f6c814c82ef9b36a432051e4 (diff) | |
download | cproc-231137aceb65c4b1ca0b54dd599f1f8b8c5c9342.tar.xz |
init: Allow string literal initializers to be in braces
Diffstat (limited to 'test')
-rw-r--r-- | test/initializer-string-braces.c | 1 | ||||
-rw-r--r-- | test/initializer-string-braces.qbe | 1 |
2 files changed, 2 insertions, 0 deletions
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, } |