aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r--test/Sema/init.c16
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 = {} };