* gcc.target/powerpc/405-dlmzb-strlen-1.c: Skip on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41241.c
blob893353b9e8e981217db9fb93a9a155c23ee7aa4a
1 /* PR bootstrap/41241 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fcompare-debug -g" } */
4 /* { dg-options "-O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5 /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
7 typedef struct { int t1; int t2; int t3; } *T;
8 typedef struct { int s; } S;
10 int fn1 (int);
11 int fn2 (int, int, int);
12 int fn3 (void);
14 static S
15 bar ()
17 S s = { 0 };
18 return s;
21 void
22 foo (T x)
24 int a, b, c, d, e;
25 T f, g;
26 S h;
27 a = x->t2;
28 fn1 (x->t1);
29 h = bar (b);
30 c = fn1 (e);
31 d = fn3 ();
32 f->t3 &= g->t3 |= fn2 (0, b, x->t1);
33 fn2 (0, c, d);
34 fn2 (0, e, 0);