aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/spec5.C
blob: 96e8cf911607117ea09f149c1fa5229ed19764fd (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|deduced conflicting types)" "candidate note" { target *-*-* } 16 }
  g(3, 'c'); // { dg-error "" } no matching function
  // { dg-message "(candidate|deduced conflicting types)" "candidate note" { target *-*-* } 18 }
}