summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ptrmem8.C
blob: e6715f336bb0f9a6bf5e386f6468e811bfe343e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S 
{
  void f (const T&);
  void f (T&);
};

class C 
{
};

typedef int (C::*cp)();

template struct S<cp>;