summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec18.C
blob: aec979a8115d13e85f5e3e8f2a73a02e8d634b8e (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
// { dg-do assemble  }

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);
}