Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / sso / p6.c
blob1f0d55d0af7098178a6a58e1da60c9662629b743
1 /* { dg-do run } */
3 #include <stdio.h>
5 #include "init6.h"
6 #include "dump.h"
8 int main (void)
10 struct R1 Local_R1;
11 struct R2 Local_R2;
13 put ("My_R1 :");
14 dump (&My_R1, sizeof (struct R1));
15 new_line ();
16 /* { dg-output "My_R1 : 78 56 34 12 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
18 put ("My_R2 :");
19 dump (&My_R2, sizeof (struct R2));
20 new_line ();
21 /* { dg-output "My_R2 : 12 34 56 78 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
23 Local_R1 = My_R1;
24 put ("Local_R1 :");
25 dump (&Local_R1, sizeof (struct R1));
26 new_line ();
27 /* { dg-output "Local_R1 : 78 56 34 12 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
29 Local_R2 = My_R2;
30 put ("Local_R2 :");
31 dump (&Local_R2, sizeof (struct R2));
32 new_line ();
33 /* { dg-output "Local_R2 : 12 34 56 78 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
35 Local_R1.I = 0x12345678;
36 Local_R1.N.A[0] = 0xAB0012;
37 Local_R1.N.A[1] = 0xCD0034;
38 Local_R1.N.A[2] = 0xEF0056;
39 put ("Local_R1 :");
40 dump (&Local_R1, sizeof (struct R1));
41 new_line ();
42 /* { dg-output "Local_R1 : 78 56 34 12 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
44 Local_R2.I = 0x12345678;
45 Local_R2.N.A[0] = 0xAB0012;
46 Local_R2.N.A[1] = 0xCD0034;
47 Local_R2.N.A[2] = 0xEF0056;
48 put ("Local_R2 :");
49 dump (&Local_R2, sizeof (struct R2));
50 new_line ();
51 /* { dg-output "Local_R2 : 12 34 56 78 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
53 Local_R1.I = Local_R2.I;
54 Local_R1.N.A[0] = Local_R2.N.A[0];
55 Local_R1.N.A[1] = Local_R2.N.A[1];
56 Local_R1.N.A[2] = Local_R2.N.A[2];
58 put ("Local_R1 :");
59 dump (&Local_R1, sizeof (struct R1));
60 new_line ();
61 /* { dg-output "Local_R1 : 78 56 34 12 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" } */
63 Local_R2.I = Local_R1.I;
64 Local_R2.N.A[0] = Local_R1.N.A[0];
65 Local_R2.N.A[1] = Local_R1.N.A[1];
66 Local_R2.N.A[2] = Local_R1.N.A[2];
68 put ("Local_R2 :");
69 dump (&Local_R2, sizeof (struct R2));
70 new_line ();
71 /* { dg-output "Local_R2 : 12 34 56 78 12 00 ab 00 34 00 cd 00 56 00 ef 00.*\n" } */
73 new_line ();
74 return 0;