[clang][Interp] Add missing static_assert message
authorTimm Bäder <tbaeder@redhat.com>
Sat, 8 Apr 2023 13:44:11 +0000 (15:44 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Sat, 8 Apr 2023 13:44:11 +0000 (15:44 +0200)
clang/test/AST/Interp/functions.cpp

index 933cc86..a8681aa 100644 (file)
@@ -214,10 +214,10 @@ namespace InvalidCall {
     }
   };
   constexpr S s;
-  static_assert(s.a() == 1); // expected-error {{not an integral constant expression}} \
-                             // expected-note {{in call to}} \
-                             // ref-error {{not an integral constant expression}} \
-                             // ref-note {{in call to}}
+  static_assert(s.a() == 1, ""); // expected-error {{not an integral constant expression}} \
+                                 // expected-note {{in call to}} \
+                                 // ref-error {{not an integral constant expression}} \
+                                 // ref-note {{in call to}}
 
   /// This used to cause an assertion failure in the new constant interpreter.
   constexpr void func(); // expected-note {{declared here}} \