diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-30 17:42:28 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-30 17:42:28 +0000 |
commit | d079b2d6005bdade40ae4a0f228aba2affc591cf (patch) | |
tree | 2e042fc6663af0046144f26de74b00fc5215a64b /test/Sema/init.c | |
parent | b8bf65e342d0872222f7ac10007d2837d7df437f (diff) |
Closed out a few radars that were addressed by designated initializers
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r-- | test/Sema/init.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c index 9f0867869a..41ca6244ff 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c @@ -80,3 +80,19 @@ struct s1 s2 = { // PR3382 char t[] = ("Hello"); + +// <rdar://problem/6094855> +typedef struct { } empty; + +typedef struct { + empty e; + int i2; +} st; + +st st1 = { .i2 = 1 }; + +// <rdar://problem/6096826> +struct { + int a; + int z[2]; +} y = { .z = {} }; |