Debian Codegraph @

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

raw
1 // PR c++/87148
2 // { dg-do compile }
3 // { dg-options "-pedantic" }
4
5 struct Tst { int i; char t[]; }; // { dg-warning "forbids flexible array member" }
6
7 Tst t {}; // { dg-warning "extended initializer lists only available with" "" { target c++98_only } }
8 Tst u = Tst();
9 void foo () { Tst u = {}; }
10 Tst *bar () { return new Tst (); }