PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dce-6.c
blob06c7b42d1a9be09de9a9467830e2f5b2806c209b
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
4 struct object { int field; };
5 void o(struct object *);
6 int globl;
7 void t(int x)
9 struct object a, b;
10 struct object *p;
11 o(&a);
12 if (x)
13 p = &a;
14 else
15 p = &b;
16 p->field = 1;
17 globl = 0;
18 return;
21 /* The global store should not prevent deleting the store to p->field. */
23 /* { dg-final { scan-tree-dump-not "p_.->field" "cddce1" } } */