Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / 20031108-1.c
blob00bf11c3b28a93da1393960a6f63bafdb3633525
1 /* PR optimization/10467 */
2 /* { dg-do compile { target arm*-*-* xscale*-*-* strongarm*-*-* } } */
3 /* { dg-options "-O2 -mthumb" } */
5 typedef enum {Ident_1} Enumeration;
7 typedef struct record
9 struct record *Ptr_Comp;
10 Enumeration Discr;
11 union {
12 struct {
13 Enumeration Enum_Comp;
14 int Int_Comp;
15 char Str_Comp [31];
16 } var_1;
17 } variant;
18 } *Rec_Pointer;
20 Rec_Pointer Ptr_Glob;
22 Proc_1 (Ptr_Val_Par)
23 Rec_Pointer Ptr_Val_Par;
25 Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp;
27 *Ptr_Val_Par->Ptr_Comp = *Ptr_Glob;
29 if (Next_Record->Discr == Ident_1)
31 Proc_7 (Next_Record->variant.var_1.Int_Comp, 10,
32 &Next_Record->variant.var_1.Int_Comp);