summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic46.C
blob: 0ea4ba6a7e6e458697c0c79e3a33b6a8cbff3be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile { target c++11 } }
template<typename... Args>
int& f(Args&...);

template<typename... Args>
float& f(const Args&...);

int& g(int x, float y)
{
  return f(x, y);
}