================
@@ -473,6 +527,38 @@ namespace test_namespace {
     // expected-note@-1 {{'int &' is not abstract}} \
     // expected-note@-1 {{because it is a reference type}} \
     // expected-note@-1 {{because it is not a struct or class type}}
+
+    static_assert(!is_const<int>::value);
+
+    static_assert(is_const<void()>::value);
+    // expected-error-re@-1 {{static assertion failed due to requirement 
'{{.*}}is_const<void ()>::value'}} \
+    // expected-note@-1 {{'void ()' is not const}} \
+    // expected-note@-1 {{because it is a function type}} \
+
+    static_assert(is_const_v<void ()>);
+    // expected-error@-1 {{static assertion failed due to requirement 
'is_const_v<void ()>'}} \
+    // expected-note@-1 {{'void ()' is not const}} \
+    // expected-note@-1 {{because it is a function type}}
+
+    static_assert(is_const<int &>::value);
+    // expected-error-re@-1 {{static assertion failed due to requirement 
'{{.*}}is_const<int &>::value'}} \
+    // expected-note@-1 {{'int &' is not const}} \
+    // expected-note@-1 {{because it is a reference type}}
----------------
NomaTyx wrote:

fixed this and also the function message

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