Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-ccp-36.c
blob: 911038391abee9ac6f40fd60a8960f5d2a3a795a [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1" } */
int
foo
(
int
i
,
int
j
)
{
int
x
=
1
;
int
y
=
i
+
x
;
int
z
=
y
-
i
;
if
(
z
==
1
)
return
1
;
return
2
;
}
/* { dg-final { scan-tree-dump "return 1;" "ccp1" } } */