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
/
visibility5.C
blob
f43b2501cce7fc9995bbed1f26d50aabdc0c14f6
1
// { dg-do assemble }
2
// GROUPS passed visibility
3
template<int K> class B;
4
template<int K> class A {int n; friend class B<K>;};
5
template<int K> class B {public: void method(A<K>) const;};
6
template<int K> void B<K>::method(A<K> X) const {X.n=0;}
7
typedef B<2> B2;
8