From: Douglas Gregor Date: Fri, 30 Jan 2009 17:42:28 +0000 (+0000) Subject: Closed out a few radars that were addressed by designated initializers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d079b2d6005bdade40ae4a0f228aba2affc591cf;p=clang 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 --- 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"); + +// +typedef struct { } empty; + +typedef struct { + empty e; + int i2; +} st; + +st st1 = { .i2 = 1 }; + +// +struct { + int a; + int z[2]; +} y = { .z = {} };