Debian Codegraph @

gcc/testsuite/g++.dg/expr/unary4.C

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