commit | 35ab4f9e99ba3bbaf266ca8689252c51da3575b2 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Jan 29 01:15:48 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Jan 29 01:15:48 2008 +0000 |
tree | 6bf6cb0df06894c5a37b8c41027105fecddc0b64 | |
parent | 2df0262a1eb41b8fef61ba4998b7c68d2f1153fe [diff] [blame] |
Correctly handle scalars in braces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46480 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c new file mode 100644 index 0000000..77a85fa --- /dev/null +++ b/test/CodeGen/init.c
@@ -0,0 +1,7 @@ +// RUN: clang -emit-llvm %s +void f1() +{ + // Braces in a scalar + int a = { 1 }; + int b = { 1, 2 }; +} \ No newline at end of file