summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec5.C
blob: df7112ad0d0ecf8ac937f2f28c94214a89bae635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }

template <class T>
void f(T t1, T t2);		// { dg-message "note" }

template <>
void f(int i, int j);

template <class T>
void g(T t1, T t2) {}		// { dg-message "note" }

template void g(int i, int j);

void h()
{
  f(3, 'c'); // { dg-error "" } no matching function
  // { dg-message "candidate" "candidate note" { target *-*-* } 16 }
  g(3, 'c'); // { dg-error "" } no matching function
  // { dg-message "candidate" "candidate note" { target *-*-* } 18 }
}