PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-reassoc-2.c
bloba334ec6122a7c7b5c31ae8e90e6eb763cba69bd9
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-original" } */
4 int foo (int i)
6 return (i + 2) - (i + 1);
8 int bar (int i)
10 return (i + 2) + ~i;
13 /* { dg-final { scan-tree-dump-times "return 1;" 2 "original" } } */