PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030917-2.c
blob2c08050c9751b2810d48370f6ea982424a8988f1
1 /* This test was causing an ICE in DCE because we were allowing void *
2 pointers to have a memory tag, which we were copying when doing copy
3 propagation. Since void * can never be de-referenced, its memory tag
4 was never renamed. */
6 /* { dg-do compile } */
7 /* { dg-options "-O -ftree-dominator-opts" } */
9 typedef __SIZE_TYPE__ size_t;
10 typedef union tree_node *tree;
11 struct operands_d
13 tree *def_op;
16 void
17 gt_ggc_mx_operands_d (void *x_p)
19 struct operands_d *const x = (struct operands_d *) x_p;
20 if ((*x).def_op != ((void *) 0))
22 size_t i0;
25 const void *const a__ = ((*x).def_op);
26 if (a__ != ((void *) 0) && a__ != (void *) 1)
27 ggc_set_mark (a__);
29 while (0);
30 for (i0 = 0; i0 < (size_t) (1); i0++)
34 if ((void *) (*x).def_op[i0] != ((void *) 0))
35 gt_ggc_mx_lang_tree_node ((*x).def_op[i0]);
37 while (0);