OSDN Git Service

PR c++/50863
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic106.C
1 // Origin: PR c++/47326
2 // { dg-options  "-std=c++0x" }
3 // { dg-do compile }
4
5 template <int _N>
6 struct A
7 {
8   typedef int value_type;
9 };
10
11 template <typename... _ARGS>
12 auto
13 f (_ARGS... args) -> typename A<sizeof...(args)>::value_type
14 {
15   return 12;
16 }
17
18 int
19 main()
20 {
21   f(1,2);
22 }