PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020418-1.c
blob4826ca88664c1ecd2b5a93c5340352ad737526c8
1 /* ifcvt accidentally deletes a referenced label while generating
2 conditional traps on machines having such patterns */
4 struct foo { int a; };
6 void gcc_crash(struct foo *p)
8 if (__builtin_expect(p->a < 52, 0))
9 __builtin_trap();
10 top:
11 p->a++;
12 if (p->a >= 62)
13 goto top;
16 int main(void)
18 struct foo x;
20 x.a = 53;
21 gcc_crash(&x);
23 exit (0);