Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin-offsetof2.C
blob: 07cc55a65c1c5ed4d8eddabc947c41ecf47f156b [
file
] [
log
] [
blame
]
// PR c++/85033
struct
S
{
enum
{
E
};
};
int
b
=
__builtin_offsetof
(
S
,
E
);
// { dg-error "cannot apply .offsetof. to an enumerator" }