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

struct Base { };

template <typename>
struct Fixed {
  typedef const char* name;
};

template <typename VT, typename... Fields>
void New(const char* name,
         typename Fixed<Fields>::name... field_names);

template <typename VT, typename... Fields>
void CreateMetric(const char* name,
                  typename Fixed<Fields>::name... field_names,
                  const Base&) { }


void Fn()
{
  CreateMetric<int, const char*>("abcd", "def", Base());
}