[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / type-trait-eval-crash-issue-57008.cpp
blob3ccaf27e04c6c45b910b1c4e96393ee245259b88
1 // RUN: %clang_cc1 -fsyntax-only %s -verify
3 // Shouldn't crash here
4 // Reported by https://github.com/llvm/llvm-project/issues/57008
5 template<class... Ts> bool b = __is_constructible(Ts...); // expected-error{{type trait requires 1 or more arguments}}
6 bool x = b<>; // expected-note{{in instantiation of variable template specialization}}