1 // PR c++/84940 2 // { dg-additional-options -Wno-vla } 3 4 void foo(int x)5 foo (int x) 6 { 7 struct {} a[1][x](-a[0]); // { dg-error "wrong type argument to unary minus" } 8 } 9