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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
nest12.C
blob
42727290f134e6732d2314ab8d93e4fdd7c0a8e6
1
// { dg-do assemble }
2
// GROUPS passed nested-classes
3
struct enclose {
4
class nested;
5
nested *nptr;
6
class nested {
7
int x;
8
};
9
void f();
10
};
11
12
void enclose::f()
13
{
14
nptr = new enclose::nested;
15
}
16
17
void g()
18
{
19
enclose obj;
20
obj.nptr = new enclose::nested;
21
}