Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr65980.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR rtl-optimization/65980 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O3 -fcompare-debug" } */ | |
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */ | |
5 | |
6 typedef struct { int b; } A; | |
7 void (*a) (int); | |
8 int b; | |
9 | |
10 int | |
11 foo (A *v) | |
12 { | |
13 asm goto ("" : : "m" (v->b) : : l); | |
14 return 0; | |
15 l: | |
16 return 1; | |
17 } | |
18 | |
19 int | |
20 bar (void) | |
21 { | |
22 if (b) | |
23 { | |
24 if (foo (0) && a) | |
25 a (0); | |
26 return 0; | |
27 } | |
28 if (foo (0) && a) | |
29 a (0); | |
30 return 0; | |
31 } |