repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
iftrap-2.c
blob
909a85fcef81b2005b189f993ccdbf5a35534c00
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
}