Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic115.C

raw
1 // PR c++/49593
2 // { dg-do compile { target c++11 } }
3
4 template<typename... T> void f(T...) { }
5
6 template<typename... Args>
7 static void
8 g(Args&&... args)
9 {
10 f( static_cast<Args>(args)... );
11 f( (Args)args... );
12 f( Args(args)... );
13 f( Args{args}... );
14 }
15
16 int main()
17 {
18 g(1, '2', 3.0);
19 }