Author: Timm Bäder Date: 2023-05-31T12:28:22+02:00 New Revision: 722fc7e7ff8672d9b6b1493a28b850775082948e
URL: https://github.com/llvm/llvm-project/commit/722fc7e7ff8672d9b6b1493a28b850775082948e DIFF: https://github.com/llvm/llvm-project/commit/722fc7e7ff8672d9b6b1493a28b850775082948e.diff LOG: [clang][Interp] Add missing static_assert messages Added: Modified: clang/test/AST/Interp/depth-limit.cpp clang/test/AST/Interp/depth-limit2.cpp Removed: ################################################################################ diff --git a/clang/test/AST/Interp/depth-limit.cpp b/clang/test/AST/Interp/depth-limit.cpp index 3e8a29c569ce..a6d5e56b141c 100644 --- a/clang/test/AST/Interp/depth-limit.cpp +++ b/clang/test/AST/Interp/depth-limit.cpp @@ -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)'}} diff --git a/clang/test/AST/Interp/depth-limit2.cpp b/clang/test/AST/Interp/depth-limit2.cpp index 614472c68ba9..3f6e64a5cf67 100644 --- a/clang/test/AST/Interp/depth-limit2.cpp +++ b/clang/test/AST/Interp/depth-limit2.cpp @@ -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()'}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits