summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic102.C
blob: dc9c4aea8cb55acd2404b4a7173b9dfa650350f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-options "-std=c++0x" }

struct nAny {
  template<class... T>
  nAny(T&&...);
};

template<class T>
T&& create();

template<class T, class... Args>
void test() {
  T t(create<Args>()...);
  (void) t;
}

int main() {
  test<nAny>();
}