Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic103.C

raw
1 // { dg-do compile { target c++11 } }
2
3 template<class T>
4 T&& create();
5
6 template<class T, class... Args>
7 void test() {
8 T t(create<Args>()...); // { dg-error "incomplete" }
9 (void) t;
10 }
11
12 int main() {
13 test<int[]>();
14 }