Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/spec18.C

raw
1 // { dg-do assemble }
2
3 template<class A, class B>
4 void foo(const A& a, const B& b)
5 {
6 }
7
8 template<class A, class B>
9 void foo(const A& a, const int& b)
10 {
11 }
12
13 template<class A*, class B>
14 void foo(const A*& a, const B& b)
15 {
16 }
17
18 template<>
19 void foo(const int&, const double&)
20 {
21 }
22
23
24 int
25 main()
26 {
27 foo("98239", 23);
28 foo(232, 1.022);
29 }
30