Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr20139.c
blob6253de428ef29c0f584fa8de60e4491cd1ed3a0b
1 /* PR tree-optimization/20139
2 This testcase is derived from gcc.dg/20020720-1.c. Here we check
3 that the optimization happens at tree level. */
5 /* { dg-do compile } */
6 /* { dg-options "-O2 -fdump-tree-optimized" } */
8 extern double fabs (double);
9 extern void link_error (void);
11 void
12 foo (double x)
14 double p, q;
16 p = fabs (x);
17 q = 0.0;
18 if (p < q)
19 link_error ();
22 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */