summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic41.C
blob: 9cfd847f31861f7e96f04c2b415006ff5d51c2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// A function parameter pack is only deduced if it's at the end
// { dg-options "-std=gnu++0x" }
template<typename... Args>
void f(const Args&... args, int oops);

int main()
{
  f<>(1);
  f(1);
  f<int>(1,2);
  f(1,2);			// { dg-error "no match" }
}

// { dg-prune-output "note" }