Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / sso / q8.c
blob2595fb4aadf69b44d2223c72b647615a4c9f86a0
1 /* { dg-do run } */
3 #include <stdio.h>
5 #include "init8.h"
6 #include "dump.h"
8 #ifdef __cplusplus
9 extern "C"
10 #endif
11 void abort (void);
13 int main (void)
15 struct R1 A1 = My_R1;
16 struct R1 B1 = My_R1;
18 struct R2 A2 = My_R2;
19 struct R2 B2 = My_R2;
21 put ("A1 :");
22 dump (&A1, sizeof (struct R1));
23 new_line ();
24 /* { dg-output "A1 : 78 56 34 12 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
26 put ("B1 :");
27 dump (&B1, sizeof (struct R1));
28 new_line ();
29 /* { dg-output "B1 : 78 56 34 12 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
31 put ("A2 :");
32 dump (&A2, sizeof (struct R2));
33 new_line ();
34 /* { dg-output "A2 : 12 34 56 78 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
36 put ("B2 :");
37 dump (&B2, sizeof (struct R2));
38 new_line ();
39 /* { dg-output "B2 : 12 34 56 78 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
41 if (A1.I != B1.I || A1.N.C1 != B1.N.C1) abort();
43 if (A2.I != B2.I || A2.N.C1 != B2.N.C1) abort ();
45 new_line ();
46 return 0;