blob: 2b58a8dc2cb1885a92b569b71db075967b5c718c [file] [log] [blame]
// PR c++/84940
// { dg-additional-options -Wno-vla }
void
foo (int x)
{
struct {} a[1][x](-a[0]); // { dg-error "wrong type argument to unary minus" }
}