diff options
Diffstat (limited to 'test/CodeGen/globalinit.c')
-rw-r--r-- | test/CodeGen/globalinit.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/CodeGen/globalinit.c b/test/CodeGen/globalinit.c index 13a9e930bd..f868feb24a 100644 --- a/test/CodeGen/globalinit.c +++ b/test/CodeGen/globalinit.c @@ -32,6 +32,12 @@ void booltest2() { static _Bool booltest3 = 4; } -// Braces in a scalar -int a = { 1 }; -int b = { 1, 2 }; +// Scalars in braces. +static int a = { 1 }; +static int b = { 1, 2 }; + +enum { + EnumA, EnumB +}; + +int c[] = { EnumA, EnumB }; |