Debian Codegraph @

gcc/testsuite/g++.dg/ext/builtin-offsetof4.C

raw
1 // PR c++/89331
2
3 class A {
4 public:
5 char a;
6 };
7
8 class B : public A {
9 public:
10 static const unsigned b = __builtin_offsetof(B, a); // { dg-error "incomplete" }
11 };