From d079b2d6005bdade40ae4a0f228aba2affc591cf Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 30 Jan 2009 17:42:28 +0000 Subject: [PATCH] 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 --- test/Sema/init.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 = {} }; -- 2.50.1