From f43adc498065fdfa120bd1aeea02c64f7ecea8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 8 Apr 2023 15:44:11 +0200 Subject: [PATCH] [clang][Interp] Add missing static_assert message --- clang/test/AST/Interp/functions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/AST/Interp/functions.cpp b/clang/test/AST/Interp/functions.cpp index 933cc860577e6..a8681aae0d582 100644 --- a/clang/test/AST/Interp/functions.cpp +++ b/clang/test/AST/Interp/functions.cpp @@ -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}} \