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
Merge from mainline.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-10.c
blob
127caa6cd6b8ee5b064d61d864267be876ab3036
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
3
double
cos
(
double
);
4
void
link_error
();
5
void
f
(
double
a
)
6
{
7
double
b
=
cos
(
a
);
8
double
c
=
cos
(
a
);
9
if
(
b
!=
c
)
10
link_error
();
11
}
12
13
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */
14
/* { dg-final { cleanup-tree-dump "fre" } } */