diff options
Diffstat (limited to 'test/CodeGen/string-init.c')
-rw-r--r-- | test/CodeGen/string-init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/string-init.c b/test/CodeGen/string-init.c new file mode 100644 index 0000000000..1d1a740faa --- /dev/null +++ b/test/CodeGen/string-init.c @@ -0,0 +1,8 @@ +// RUN: clang -emit-llvm %s -o - | not grep "[5 x i8]" +// RUN: clang -emit-llvm %s -o - | not grep "store" + +void test(void) { + char a[10] = "asdf"; + char b[10] = { "asdf" }; +} + |