Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / gcc.dg / Woverride-init-3.c
blob3fec7385d047a41d410a1fdcc8fce6c85d59179f
1 /* Test for warnings for overriding designated initializers: not
2 warned for with -Wextra -Wno-override-init. Bug 24010. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-Wextra -Wno-override-init" } */
7 struct s { int a; int b; int c; };
8 union u { char a; long long b; };
10 struct s s0 = {
11 .a = 1,
12 .b = 2,
13 .a = 3,
18 union u u0 = {
19 .a = 1,
20 .b = 2,
21 .a = 3
24 int a[5] = {
25 [0] = 1,
26 [1] = 2,
27 [0] = 3,
28 [2] = 4