Sign in
gnu
/
gcc
/
refs/heads/devel/gimple-linterchange
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin-offsetof1.C
blob: 5c5e9cf246b0abfe66aa430ef49d4aa24b145baa [
file
] [
log
] [
blame
]
// PR c++/51413
// { dg-options "-w" }
struct
A
{
static
void
foo
();
};
int
i
=
__builtin_offsetof
(
A
,
foo
[
1
]);
// { dg-error "neither a single identifier nor a sequence of member accesses and array references" }