re PR tree-optimization/34172 (Missed store ccp optimization)
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050811-2.c
blob2f1d48b350e80b9fc5a61315684cd27b84f80f29
1 /* Test whether -dov doesn't crash. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -dov" } */
5 int foo (void)
7 return 6;
10 int bar (int x)
12 if (x < 0)
13 return foo () + 8;
14 else if (x > 0)
15 return 2 * foo ();
16 else
17 return foo ();
20 // { dg-final { cleanup-rtl-dump "postreload*" } }