Debian Codegraph @

gcc/testsuite/g++.dg/parse/pr88180.C

raw
1 // PR c++/88180
2 // { dg-do compile }
3 // { dg-options "--param ggc-min-heapsize=1024" }
4
5 struct d {
6 static d *b;
7 } * d::b(__builtin_offsetof(struct { // { dg-error "types may not be defined" }
8 int i;
9 struct a { // { dg-error "types may not be defined" }
10 int c() { return .1f; }
11 };
12 }, i));