OSDN Git Service

* doc/passes.texi: Document predictive commoning.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / fesd.h
1 /*
2 where from: base = matching base; head = other header
3 what kind:  ordy = ordinary struct; tmpl = template struct
4 definition: decl = incomplete declaration; defn = full definition
5 how used:   not = not used; ref = by ref; ptr = through pointer;
6             fld = as field; var = as variable
7 from where: base = from base; head = other header
8 */
9
10 struct gstruct_head_ordy_decl_not;
11 struct gstruct_head_ordy_defn_not { int field_head_ordy_defn_not; };
12
13 struct gstruct_head_ordy_decl_ref_head;
14 struct gstruct_head_ordy_defn_ref_head { int field_head_ordy_defn_ref_head; };
15 struct gstruct_head_ordy_defn_ptr_head { int field_head_ordy_defn_ptr_head; };
16 struct gstruct_head_ordy_defn_fld_head { int field_head_ordy_defn_fld_head; };
17 struct gstruct_head_ordy_defn_var_head {
18     struct gstruct_head_ordy_decl_ref_head *field_head_ordy_defn_var_head_inc;
19     struct gstruct_head_ordy_defn_ref_head *field_head_ordy_defn_var_head_ref;
20     struct gstruct_head_ordy_defn_ptr_head *field_head_ordy_defn_var_head_ptr;
21     struct gstruct_head_ordy_defn_fld_head  field_head_ordy_defn_var_head_fld;
22 };
23 extern struct gstruct_head_ordy_defn_var_head head_var1;
24
25 struct gstruct_head_ordy_decl_ref_base;
26 struct gstruct_head_ordy_defn_ref_base { int field_head_ordy_defn_ref_base; };
27 struct gstruct_head_ordy_defn_ptr_base { int field_head_ordy_defn_ptr_base; };
28 struct gstruct_head_ordy_defn_fld_base { int field_head_ordy_defn_fld_base; };
29 struct gstruct_head_ordy_defn_var_base { int field_head_ordy_defn_var_base; };
30
31 inline int head_function() {
32     return 0
33 + head_var1.field_head_ordy_defn_var_head_ptr->field_head_ordy_defn_ptr_head
34 + head_var1.field_head_ordy_defn_var_head_fld.field_head_ordy_defn_fld_head
35 ;
36 }