summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec33.C
blob: d4d70f1dcf640f0a1183e20880d088ec8ecf6ffe (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 link  }
// Origin: James McKelvey <mckelvey@fafnir.com>

class A
{
  public:
  template <class T> A(T x, bool y = false);
};

template <class T> A::A(T, bool)
{
}

template <> A::A(char, bool)
{
}

int main()
{
  int  b;
  char c;

  A x(b);
  A y(c);
  A z(c, false);
}