diff --git a/clang/test/SemaCXX/cxx23-assume.cpp b/clang/test/SemaCXX/cxx23-assume.cpp index 2b99cbd3e788a..2d7c9b174d901 100644 --- a/clang/test/SemaCXX/cxx23-assume.cpp +++ b/clang/test/SemaCXX/cxx23-assume.cpp @@ -65,8 +65,8 @@ static_assert(h(4) == sizeof(int)); static_assert(__has_cpp_attribute(assume) == 202207L); static_assert(__has_attribute(assume)); -constexpr bool i() { // expected-error {{never produces a constant expression}} - [[assume(false)]]; // expected-note {{assumption evaluated to false}} expected-note {{assumption evaluated to false}} ext-warning {{C++23 extension}} +constexpr bool i() { // ext-error {{never produces a constant expression}} + [[assume(false)]]; // ext-note {{assumption evaluated to false}} expected-note {{assumption evaluated to false}} ext-warning {{C++23 extension}} return true; }