summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend43.C
blob: 5a62efb6c5e3aeb993f51dd5397a3e5c000cf094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// Origin: Matt Austern <austern@isolde.engr.sgi.com>

class A {
public:
  static void f();
};

template <class T>
class B : public A {
  friend void A::f();
};

template <class T>
class C : public B<T>
{
};

template class C<char>;