Debian Codegraph @

gcc/testsuite/g++.dg/other/const5.C

raw
1 // PR c++/81061
2
3 const int i = 0;
4
5 void foo()
6 {
7 (0, i) = 1; // { dg-error "read-only" }
8 }