PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-4.c
blobc313a94dde37782c59e12efe0e673509c0cfc773
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-forwprop1" } */
4 /* We should be able to fold the comparison at least with the
5 first forwprop pass, if not a ccp pass before. */
7 extern void link_error (void);
8 void foo()
10 int i;
11 char *p = (char *)&i;
12 long *q = (long *)p;
13 if (q == 0)
14 link_error ();
17 /* { dg-final { scan-tree-dump-not "link_error" "forwprop1" } } */