summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend42.C
blob: 3c353e53d81ed87e2181fa4a6d91242680833872 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S {
  template <class U>
  friend struct S2;
};

template struct S<int>;