================
@@ -590,4 +613,28 @@ void test() {
// expected-note@#concept10 {{'void' is not aggregate}} \
// expected-note@#concept10 {{because it is a cv void type}}
}
+ static_assert(std::is_integral<double>::value);
+ // expected-error-re@-1 {{static assertion failed due to requirement
'std::{{.*}}is_integral<double>::value'}} \
+ // expected-note@-1 {{'double' is not an integral type}} \
+ // expected-note@-1 {{because it is a floating-point type}}
----------------
zyn0217 wrote:
This looks verbose, can we simply say
`'double' is a floating-point type, not an integral type` ?
https://github.com/llvm/llvm-project/pull/235416
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits