Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41241.c
blob5364a0a5935b83d01ffce6ed396c6b6d044d9616
1 /* PR bootstrap/41241 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu17 -O2 -fcompare-debug -g" } */
4 /* { dg-options "-std=gnu17 -O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
6 typedef struct { int t1; int t2; int t3; } *T;
7 typedef struct { int s; } S;
9 int fn1 (int);
10 int fn2 (int, int, int);
11 int fn3 (void);
13 static S
14 bar ()
16 S s = { 0 };
17 return s;
20 void
21 foo (T x)
23 int a, b, c, d, e;
24 T f, g;
25 S h;
26 a = x->t2;
27 fn1 (x->t1);
28 h = bar (b);
29 c = fn1 (e);
30 d = fn3 ();
31 f->t3 &= g->t3 |= fn2 (0, b, x->t1);
32 fn2 (0, c, d);
33 fn2 (0, e, 0);