Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / iftrap-2.c
blob8c9c0577ca508b472fb431153eefe5b9f68ea469
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\]" } } */
6 extern void abort(void);
8 void f1(int p)
10 if (p)
11 __builtin_trap();
12 else
13 abort();
16 void f2(int p)
18 if (p)
19 abort();
20 else
21 __builtin_trap();