repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix typo in test case
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
typedef1.C
blob
b9ebac2f22d727767d8215571c607abe51919302
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
}