[clang][Interp] Add missing static_assert messages
authorTimm Bäder <tbaeder@redhat.com>
Wed, 31 May 2023 10:27:58 +0000 (12:27 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 31 May 2023 10:28:22 +0000 (12:28 +0200)
clang/test/AST/Interp/depth-limit.cpp
clang/test/AST/Interp/depth-limit2.cpp

index 3e8a29c..a6d5e56 100644 (file)
@@ -29,7 +29,7 @@ constexpr int f(int a) {
                    // expected-note {{in call to 'f(2)'}} \
                    // expected-note {{in call to 'f(1)'}}
 }
-static_assert(f(0) == 100); // ref-error {{not an integral constant expression}} \
-                            // ref-note {{in call to 'f(0)'}} \
-                            // expected-error {{not an integral constant expression}} \
-                            // expected-note {{in call to 'f(0)'}}
+static_assert(f(0) == 100, ""); // ref-error {{not an integral constant expression}} \
+                                // ref-note {{in call to 'f(0)'}} \
+                                // expected-error {{not an integral constant expression}} \
+                                // expected-note {{in call to 'f(0)'}}
index 614472c..3f6e64a 100644 (file)
@@ -16,8 +16,8 @@ constexpr int bar() {
                 // ref-note {{in call to 'foo()'}}
 }
 
-static_assert(bar() == 12); // expected-error {{not an integral constant expression}} \
-                            // expected-note {{in call to 'bar()'}} \
-                            // ref-error {{not an integral constant expression}} \
-                            // ref-note {{in call to 'bar()'}}
+static_assert(bar() == 12, ""); // expected-error {{not an integral constant expression}} \
+                                // expected-note {{in call to 'bar()'}} \
+                                // ref-error {{not an integral constant expression}} \
+                                // ref-note {{in call to 'bar()'}}