aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/variadic106.C
blob: 80ec0844fbf4db7ee845b2edda96921f642499a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Origin: PR c++/47326
// { dg-options  "-std=c++0x" }
// { dg-do compile }

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);
}