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