diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/globalinit.c | 3 | ||||
-rw-r--r-- | test/CodeGen/init.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/globalinit.c b/test/CodeGen/globalinit.c index 717b0c1cfb..13a9e930bd 100644 --- a/test/CodeGen/globalinit.c +++ b/test/CodeGen/globalinit.c @@ -32,3 +32,6 @@ void booltest2() { static _Bool booltest3 = 4; } +// Braces in a scalar +int a = { 1 }; +int b = { 1, 2 }; diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c new file mode 100644 index 0000000000..77a85fa75c --- /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 |