Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
pr85039-1.C
blob: 2bda81ba8394c4c4a00989ac2f7bc2e4ce3e649f [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
constexpr
int
a
()
{
return
__builtin_offsetof
(
struct
{
// { dg-error "types may not be defined" }
int
i
;
short
b
{
__builtin_offsetof
(
struct
{
int
j
;
struct
c
{
void
d
()
{
}
};
},
j
)
};
},
i
);
}