PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20031216-1.c
blobd3d39df3b11fa8544c8ef8db9d73d229a6eb438c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
6 void
7 foo (int b)
9 int a;
10 a = b + 2;
11 a--;
12 a--;
13 if (a != b)
14 link_error ();
17 /* The comparison should be eliminated, there should be no reference
18 to link_error. */
19 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */