Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/typedef1.C

raw
1 // { dg-do assemble }
2
3 typedef const struct {
4 int x;
5 } Test;
6
7 static void foo(Test);
8
9 static void foo(Test t)
10 {
11 t.x = 0; // { dg-error "" } assignment of read-only member
12 return;
13 }