summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic115.C
blob: fa032e3b022be20210b943608511c2c85bdfb6bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/49593
// { dg-options -std=c++0x }

template<typename... T> void f(T...) { }

template<typename... Args>
static void
g(Args&&... args)
{
  f( static_cast<Args>(args)... );
  f( (Args)args... );
  f( Args(args)... );
  f( Args{args}... );
}

int main()
{
  g(1, '2', 3.0);
}