summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template19.C
blob: d5215aea774343749863efc0b0245ad0fcacdb66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-do assemble  }
// GROUPS passed templates
template <class T>
class Base
{
public:
    Base() { }
};

template <class memberType, class keyType>
class Middle : public Base<memberType>
{
public:
    Middle (keyType const & (*ko) (memberType const &))
    {
    }
};

// EXCHANGE the following lines for this code to work.
//template <class memberType, class keyType> class Middle;
template <class T, class keyType> class Middle;

struct Test : public Middle <int, int>
{
    Test();
};