]> granicus.if.org Git - clang/commitdiff
Closed out a few radars that were addressed by designated initializers
authorDouglas Gregor <dgregor@apple.com>
Fri, 30 Jan 2009 17:42:28 +0000 (17:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 30 Jan 2009 17:42:28 +0000 (17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63398 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/init.c

index 9f0867869a98f3630174ccd6e28bfe9cc302afec..41ca6244ff298d0f64c7ca04357b28782b7ee878 100644 (file)
@@ -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 = {} };