blob: 8bbb38bf54b6995ece9cb3130e4a20fd4bfbcffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Test support of scalar_storage_order attribute */
/* { dg-do compile } */
struct S3
{
struct __attribute__((scalar_storage_order("big-endian"))) S1
{
int i;
} s1;
};
struct S4
{
struct __attribute__((scalar_storage_order("little-endian"))) S2
{
int i;
} s2;
};
void incompatible_assign (struct S3 *s3, struct S4 *s4)
{
s3->s1 = s4->s2; /* { dg-error "(incompatible types|no match)" } */
}
|