☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
const5.C
☽
☼
gcc/testsuite/g++.dg/other/const5.C
code
plain
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
}