aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic106.C
blob: efa4c34cd8500d4204ea27ef231f751c49361a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Origin: PR c++/47326
// { dg-do compile { target c++11 } }

template <int _N>
struct A
{
  typedef int value_type;
};

template <typename... _ARGS>
auto
f (_ARGS... args) -> typename A<sizeof...(args)>::value_type
{
  return 12;
}

int
main()
{
  f(1,2);
}