From 722fc7e7ff8672d9b6b1493a28b850775082948e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 31 May 2023 12:27:58 +0200 Subject: [PATCH] [clang][Interp] Add missing static_assert messages --- clang/test/AST/Interp/depth-limit.cpp | 8 ++++---- clang/test/AST/Interp/depth-limit2.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clang/test/AST/Interp/depth-limit.cpp b/clang/test/AST/Interp/depth-limit.cpp index 3e8a29c..a6d5e56 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 614472c6..3f6e64a 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()'}} -- 2.7.4