2 // Origin: Patrik Hägglund <patrik.hagglund@bredband.net>
10 int a = __builtin_offsetof(bar, foo); // { dg-error "static data member" }
11 int av = __builtin_offsetof(volatile bar, foo); // { dg-error "static data member" }
12 int b = __builtin_offsetof(bar, baz); // { dg-error "member function" }
13 int b0 = __builtin_offsetof(bar, baz[0]); // { dg-error "function" }
14 int bv0 = __builtin_offsetof(volatile bar, baz[0]); // { dg-error "function" }
15 int c = __builtin_offsetof(bar, ~bar); // { dg-error "member function" }
20 int d = __builtin_offsetof(I, ~I); // { dg-error "destructor" }
21 int e = __builtin_offsetof(E, ~E); // { dg-error "destructor" }