Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / 20030709-3.c
blob1d69e5c59774d4e6d01fd7f3b331b781155e4f01
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom3" } */
4 extern void abort (void);
6 union tree_node;
7 typedef union tree_node *tree;
8 enum tree_code
10 TREE_VEC = 20,
12 struct tree_common
14 int code;
16 struct tree_type
18 tree binfo;
20 union tree_node
22 struct tree_common common;
23 struct tree_type type;
25 void
26 record_component_aliases (type)
27 tree type;
29 const tree __z = type->type.binfo;
30 if (type->type.binfo->common.code != TREE_VEC)
31 abort ();
33 if (__z->common.code != TREE_VEC)
34 abort ();
37 /* There should be precisely one load of type.binfo. If there is
38 more than one, then the dominator optimizations failed. */
39 /* { dg-final { scan-tree-dump-times "type\\.binfo" 1 "dom3"} } */
41 /* There should be precisely one load of common.code. If there is
42 more than one, then the dominator optimizations failed. */
43 /* { dg-final { scan-tree-dump-times "common\\.code" 1 "dom3"} } */
45 /* There should be one IF conditional. */
46 /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */
48 /* { dg-final { cleanup-tree-dump "dom3" } } */