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

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

template<class T, class... Args>
void test() {
  T t(create<Args>()...);	// { dg-error "incomplete" }
  (void) t;
}

int main() {
  test<int[]>();
}