Debian Codegraph @

gcc/testsuite/g++.dg/ext/builtin-offsetof2.C

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" }