OSDN Git Service

* lib/obj-c++.exp (obj-c++_target_compile): Declare global variable,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / typedef1.C
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 }