2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr65980.c
blob4babad6d4179f3d7c83d20481b0b6b6cf06dfd57
1 /* PR rtl-optimization/65980 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 typedef struct { int b; } A;
7 void (*a) (int);
8 int b;
10 int
11 foo (A *v)
13 asm goto ("" : : "m" (v->b) : : l);
14 return 0;
16 return 1;
19 int
20 bar (void)
22 if (b)
24 if (foo (0) && a)
25 a (0);
26 return 0;
28 if (foo (0) && a)
29 a (0);
30 return 0;