17 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3template<class T>4T&& create();5 6template<class T, class... Args>7void test() {8 T t(create<Args>()...); // expected-error{{variable has incomplete type 'int[]'}}9 (void) t;10}11 12struct A;13 14int main() {15 test<int[]>(); // expected-note {{in instantiation of function template specialization 'test<int[]>' requested here}}16}17