summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/visibility5.C
blob: f43b2501cce7fc9995bbed1f26d50aabdc0c14f6 (plain)
1
2
3
4
5
6
7
8
// { 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;