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++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-ccp-20.c
blob
9ee03c646438282646fdd846784cf14f44ea9ec4
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
4
/* Make sure CCP propagates through indirect calls. */
5
6
int
foo
(
void
)
7
{
8
int
i
= -
5
;
9
int
(*
fn
)(
int
) =
__builtin_abs
;
10
int
j
=
fn
(
i
);
11
return
j
+
5
;
12
}
13
14
/* { dg-final { scan-tree-dump "return 10;" "ccp1" } } */