OSDN Git Service

* g++.old-deja/g++.other/eh4.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / typedef1.C
1 // Build don't link:
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; // ERROR - assignment of read-only member
12   return;
13 }