blob: 5c5e9cf246b0abfe66aa430ef49d4aa24b145baa (
plain)
1
2
3
4
5
6
7
8
9
|
// 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" }
|