Debian Codegraph @

gcc/testsuite/g++.dg/ext/flexary29.C

raw
1 // PR c++/84578
2 // { dg-do compile { target c++11 } }
3 // { dg-options -Wno-pedantic }
4
5 struct A
6 {
7 constexpr A() : i(), x() {} // { dg-error "flexible" }
8 int i;
9 char x[];
10 };
11
12 A a;