Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-8.c
blobde1d5bb6240340805d95d3b4c6acd06f32020292
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-dce -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dominator-opts" } */
4 /* This caused the compiler to enter an infinite loop if copies are not
5 fully propagated. The options are to disable copy propagation and
6 thus expose the bug. */
8 int foo (void);
10 struct A {
11 struct B {
12 struct B *n;
13 } *p;
16 static inline void baz (struct A *a)
18 a->p = a->p->n;
21 void bar (struct A a)
23 while (foo ())
24 baz (&a);
25 while (foo ());