summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/defarg2.C
blob: ff036f1f0580fdfd9e94c674a55a98ea69734a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do run  }
template <int S=0, class T=int>
struct X
{};

template <>
struct X<0,int>
{};

template <int S>
struct X<S,int>
: X<>
{};

int main()
{
  X<1,int> x;
}