IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / pr20115-1.c
blob60313cd53d0ce1e9755ad7b4a241b60bae35d625
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom1" } */
4 extern int foo (void) __attribute__((pure));
6 int bar()
8 int a = foo ();
9 a += foo ();
10 return a;
13 /* Check that we only have one call to foo. */
14 /* { dg-final { scan-tree-dump-times "foo" 1 "dom1" } } */
15 /* { dg-final { cleanup-tree-dump "dom1" } } */