================
@@ -895,15 +895,15 @@ static_assert(__is_abstract(U));
 
 namespace is_const_tests {
 
-static_assert(__is_const(void()));
+static_assert(__is_const(const void()));
 // expected-error@-1 {{static assertion failed due to requirement 
'__is_const(void ())'}} \
 // expected-note@-1 {{'void ()' is not const}} \
----------------
NomaTyx wrote:

sigh, my bad for working really tired. I ran the tests without realizing that 
expected-note matches substrings, so a longer note will still pass. Not sure 
how this one escaped me though.

https://github.com/llvm/llvm-project/pull/235587
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to