Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / 20030807-8.c
blob27f25eb99ada152812a52c6846a14a2655ee8cf2
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom3" } */
4 struct die_struct;
5 typedef struct die_struct *dw_die_ref;
6 typedef struct dw_loc_list_struct *dw_loc_list_ref;
7 enum dw_val_class
9 dw_val_class_loc_list,
11 typedef struct dw_val_struct
13 enum dw_val_class val_class;
14 union dw_val_struct_union
16 dw_loc_list_ref val_loc_list;
20 dw_val_node;
21 typedef struct dw_attr_struct *dw_attr_ref;
22 typedef struct dw_attr_struct
24 dw_val_node dw_attr_val;
26 dw_attr_node;
28 extern __inline__ enum dw_val_class
29 AT_class (a)
30 dw_attr_ref a;
32 return a->dw_attr_val.val_class;
35 extern __inline__ dw_loc_list_ref
36 AT_loc_list (a)
37 dw_attr_ref a;
39 if (AT_class (a) == dw_val_class_loc_list)
40 return a->dw_attr_val.v.val_loc_list;
43 void
44 output_location_lists (die)
45 dw_die_ref die;
47 dw_die_ref c;
48 dw_attr_ref d_attr;
49 if (AT_class (d_attr) == dw_val_class_loc_list)
50 output_loc_list (AT_loc_list (d_attr));
53 /* There should be exactly one IF conditional, in output_location_lists. */
54 /* { dg-final { scan-tree-dump-times "if " 1 "dom3"} } */
55 /* { dg-final { cleanup-tree-dump "dom3" } } */