13 int Get_Elem1 (struct R1 R
)
19 void Set_Elem1 (struct R1
*R
, int I
)
26 int Get_Elem2 (struct R2 R
)
32 void Set_Elem2 (struct R2
*R
, int I
)
45 dump (&A1
, sizeof (struct R1
));
47 /* { dg-output "A1 : 78 56 34 12 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
50 dump (&A2
, sizeof (struct R2
));
52 /* { dg-output "A2 : 12 34 56 78 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
54 if (Get_Elem1 (A1
) != 0xAB0012) abort ();
56 Set_Elem1 (&A1
, 0xCD0034);
57 if (Get_Elem1 (A1
) != 0xCD0034) abort ();
59 if (Get_Elem2 (A2
) != 0xAB0012) abort ();
61 Set_Elem2 (&A2
, 0xCD0034);
62 if (Get_Elem2 (A2
) != 0xCD0034) abort ();