summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec18.C
blob: d7d034d6f7fd58f7749474e01559b5f107366048 (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
27
28
29
30
// Build don't link:

template<class A, class B>
void foo(const A& a, const B& b)
{
}

template<class A, class B>
void foo(const A& a, const int& b)
{
}

template<class A*, class B>
void foo(const A*& a, const B& b)
{
}

template<>
void foo(const int&, const double&)
{
}


int
main()
{
  foo("98239", 23);
  foo(232, 1.022);
}