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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
anon.C
blob
e970359f8a80c23697c3b510def076154b0f29a6
1
// { dg-do run }
2
// Bug: g++ has trouble copying anonymous structs.
3
4
typedef struct { int i; } foo;
5
struct A : public foo {
6
struct { int i; } x;
7
};
8
9
int main ()
10
{
11
A a;
12
a.i = 5;
13
a.x.i = 42;
14
A b (a);
15
a = b;
16
if (a.i != 5 || a.x.i != 42)
17
return 1;
18
return 0;
19
}