Debian Codegraph @

gcc/testsuite/g++.dg/init/array21.C

raw
1 // PR c++/27722
2
3 void foo()
4 {
5 const int x[] = 0; // { dg-error "initializer" }
6 ++x; // { dg-error "read-only|operand" }
7 }