Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.dg
/
fold-reassoc-2.c
blob: a334ec6122a7c7b5c31ae8e90e6eb763cba69bd9 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-original" } */
int
foo
(
int
i
)
{
return
(
i
+
2
)
-
(
i
+
1
);
}
int
bar
(
int
i
)
{
return
(
i
+
2
)
+
~
i
;
}
/* { dg-final { scan-tree-dump-times "return 1;" 2 "original" } } */