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