summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic56.C
blob: 77846e513210077a3afc086fa81e36ca664453c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-options "-std=gnu++0x" }
template<typename... Elements>
struct tuple { };

template<typename T, typename... Elements>
struct tuple<T, Elements...> {
  int foo();
};

template<typename T, typename... Elements>
struct tuple<T*, Elements...> {
  int bar();
};

template<typename T, typename... Elements>
int tuple<T, Elements...>::foo() { return 0; }

template<typename T, typename... Elements>
int tuple<T*, Elements...>::bar() { return 0; }