2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / expr / unary4.C
blob2b58a8dc2cb1885a92b569b71db075967b5c718c
1 // PR c++/84940
2 // { dg-additional-options -Wno-vla }
4 void
5 foo (int x)
7   struct {} a[1][x](-a[0]); // { dg-error "wrong type argument to unary minus" }