PR libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git] / gcc / testsuite / g++.dg / pr85039-1.C
blobf57c8a261deef306b9edb229e3e6bab9a7c208a0
1 // { dg-do compile { target c++14 } }
3 constexpr int a() {
4  return
5   __builtin_offsetof(struct { // { dg-error "types may not be defined" }
6     int i;
7     short b {
8       __builtin_offsetof(struct { // { dg-error "types may not be defined" }
9         int j;
10         struct c { // { dg-error "types may not be defined" }
11           void d() {
12           }
13         };
14       }, j)
15     };
16   }, i);