Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / tree-ssa / 20041008-1.c
blobca24427b65c6ea6747bbc5aee3e761656d56aaba
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 struct A {
5 int x;
6 int y;
7 };
9 baz (struct A *a)
11 a->x = 3;
12 a->y = 2;
15 foo (int i)
17 struct A a;
19 /* Make sure we can't scalarize 'a'. */
20 baz (&a);
22 if (i > 10)
23 a.x = i;
24 else
25 a.x = i;
27 /* Copy propagation should prove that this predicate is always false. */
28 if (a.x != i)
29 link_error ();
31 return a.x;
34 main ()
36 foo (30);
37 return 0;