summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend5.C
blob: 1a63e71e32c198a4a8af60b77ee9fcbc001ea224 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

namespace NS {  template <typename number> class C;  }

template <typename T> class X {
    template <typename N> friend class NS::C;
};

template class X<int>;