Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
offsetof2.C
blob: 647cf8d0b77c5dd38c90c38464db387986f987c7 [
file
] [
log
] [
blame
]
// PR c++/85662
// { dg-do compile { target c++11 } }
struct
S
{
unsigned
long
x
[
31
];
};
struct
T
{
bool
b
;
S f
;
};
static_assert
(
__builtin_offsetof
(
T
,
f
.
x
[
31
-
1
])
==
__builtin_offsetof
(
T
,
f
.
x
[
30
]),
""
);