OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2003-01-08 Larin Hennessey <larin@science.oregonstate.edu>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
anon.C
1
// Bug: g++ has trouble copying anonymous structs.
2
3
typedef struct { int i; } foo;
4
struct A : public foo {
5
struct { int i; } x;
6
};
7
8
int main ()
9
{
10
A a;
11
a.i = 5;
12
a.x.i = 42;
13
A b (a);
14
a = b;
15
if (a.i != 5 || a.x.i != 42)
16
return 1;
17
return 0;
18
}