summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/typedef1.C
blob: d44772932edbbcdd07757f13cc55c71cbdec76a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link:

typedef const struct {
   int x;
} Test;

void foo(Test);

void foo(Test t)
{
  t.x = 0; // ERROR - assignment of read-only member
  return;
}