OSDN Git Service

* ifcvt.c: Include except.h.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / iftrap-2.c
1 /* Verify that we optimize to conditional traps.  */
2 /* { dg-options "-O" } */
3 /* { dg-do compile { target rs6000-*-* powerpc-*-* sparc*-*-* ia64-*-* } } */
4 /* { dg-final { scan-assembler-not "^\t(trap|ta|break)\[ \t\]" } } */
5
6 void f1(int p)
7 {
8   if (p)
9     __builtin_trap();
10   else
11     abort();
12 }
13
14 void f2(int p)
15 {
16   if (p)
17     abort();
18   else
19     __builtin_trap();
20 }