bolt/deps/llvm-18.1.8/clang/test/SemaCXX/gh37257.cpp
2025-02-14 19:21:04 +01:00

16 lines
370 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
template<class T>
T&& create();
template<class T, class... Args>
void test() {
T t(create<Args>()...); // expected-error{{variable has incomplete type 'int[]'}}
(void) t;
}
struct A;
int main() {
test<int[]>(); // expected-note {{in instantiation of function template specialization 'test<int[]>' requested here}}
}