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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr55152.c
blob
b1a72cb5a2921501ddeb4645d3c744b8885a133f
1
/* { dg-do compile } */
2
/* { dg-options "-O -ffinite-math-only -fno-signed-zeros -fstrict-overflow -fdump-tree-optimized" } */
3
4
double
g
(
double
a
)
5
{
6
return
(
a
>=-
a
)?
a
:-
a
;
7
}
8
int
f
(
int
a
)
9
{
10
return
(
a
>=-
a
)?
a
:-
a
;
11
}
12
13
/* { dg-final { scan-tree-dump-times "ABS_EXPR" 2 "optimized" } } */