PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030714-2.c
blobeb663f2ff5b6b5af2cbd14683654ad6bd4eaf9ff
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom2" } */
5 union tree_node;
6 typedef union tree_node *tree;
7 extern const char tree_code_type[];
8 struct tree_common
10 int code;
11 tree type;
13 struct tree_exp
15 tree operands[1];
17 union tree_node
19 struct tree_common common;
20 struct tree_exp exp;
22 long
23 get_alias_set (t)
24 tree t;
26 if (tree_code_type[t->common.code] != 't' && t->common.type == 0)
27 return 0;
28 if (tree_code_type[t->common.code] != 't')
30 while (t->exp.operands[0])
31 t = t->exp.operands[0];
35 /* There should be exactly three IF conditionals if we thread jumps
36 properly. */
37 /* { dg-final { scan-tree-dump-times "if " 3 "dom2"} } */