Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / tree-ssa / 20031216-1.c
blob0e97833fea0c003cf4eaca506ce3a3e03344088b
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"} } */
20 /* { dg-final { cleanup-tree-dump "optimized" } } */