PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp12.c
blob50552efa2841a573b9fec76a4f1c76ce5bd4b686
1 /* { dg-do link } */
2 /* { dg-options -O2 } */
4 extern void link_error (void);
6 int
7 foo (int i)
9 int x;
11 x = i;
12 if (i < -10)
14 x = __builtin_abs (i);
15 /* VRP was incorrectly folding this to if (1). */
16 if (x < 0)
17 link_error ();
20 return x;
23 int
24 main()
26 foo (-30);