blob: 0ce2ee02aa8639907a2ae65c0581c16d70585a23 [file] [log] [blame]
// PR c++/50608
// Testcase by <dberger@oubliette.org>
// { dg-do compile }
struct A {
int offset;
};
struct B: public A {
};
struct C {
A a;
B b;
};
int fails = __builtin_offsetof (C, b.offset);