Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr52880.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/52880 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Woverride-init" } */ | |
4 | |
5 struct A { int a; int b; }; | |
6 struct B { struct A c; int d, e; }; | |
7 struct B f = { .c.a = 0, .e = 1, .d = 2, .c.b = 3 }; | |
8 struct C { int g; int h; }; | |
9 struct D { int i; struct C j; int k; }; | |
10 struct D l = { .j.g = 0, .k = 1, .i = 2, .j.h = 3 }; |