☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin-offsetof2.C
☽
☼
gcc/testsuite/g++.dg/ext/builtin-offsetof2.C
code
plain
raw
1
// PR c++/85033
2
3
struct S {
4
enum { E };
5
};
6
7
int b = __builtin_offsetof(S, E); // { dg-error "cannot apply .offsetof. to an enumerator" }