clang/test/SemaCXX/type-trait-eval-crash-issue-57008.cpp
raw| 1 | // RUN: %clang_cc1 -fsyntax-only %s -verify |
| 2 | |
| 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}} |