Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / sso-5.c
blob8bbb38bf54b6995ece9cb3130e4a20fd4bfbcffa
1 /* Test support of scalar_storage_order attribute */
3 /* { dg-do compile } */
5 struct S3
7 struct __attribute__((scalar_storage_order("big-endian"))) S1
9 int i;
10 } s1;
13 struct S4
15 struct __attribute__((scalar_storage_order("little-endian"))) S2
17 int i;
18 } s2;
21 void incompatible_assign (struct S3 *s3, struct S4 *s4)
23 s3->s1 = s4->s2; /* { dg-error "(incompatible types|no match)" } */