1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-reassoc1" } */
3 int main(int a
, int b
, int c
, int d
, int e
, int f
, int g
, int h
)
5 /* Should be transformed into a + c + d + e + g + 15 */
6 int i
= (a
+ 9) + (c
+ d
);
7 int j
= (e
+ 4) + (2 + g
);
11 /* { dg-final { scan-tree-dump-times "\\\+ 15" 1 "reassoc1"} } */
12 /* { dg-final { cleanup-tree-dump "reassoc1" } } */