URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [visibility5.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed visibility
template<int K> class B;
template<int K> class A {int n; friend class B<K>;};
template<int K> class B {public: void method(A<K>) const;};
template<int K> void B<K>::method(A<K> X) const {X.n=0;}
typedef B<2> B2;