summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic-ex3.C
blob: 60c47176d0029bb61989228e8faa517f424d6915 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-std=gnu++0x" }
template<class X, class Y, class... Z> X f(Y); // { dg-message "candidate" }
void g() 
{ 
  int i = f<int>(5.6);
  int j = f(5.6);         // { dg-error "no matching" }
  f<void>(f<int, bool>); 
  f<void>(f<int>);        // { dg-error "no matching" }
}