From 6c9f1ce429809e5a91683ed6cef9a435047bebd1 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Tue, 5 Aug 2025 17:28:49 +0200 Subject: [PATCH] [analyzer] Add missing expected-warning after #151908 --- clang/test/Analysis/cxx23-assume-attribute.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/test/Analysis/cxx23-assume-attribute.cpp b/clang/test/Analysis/cxx23-assume-attribute.cpp index dd15ff5d43505..4cc16446572dc 100644 --- a/clang/test/Analysis/cxx23-assume-attribute.cpp +++ b/clang/test/Analysis/cxx23-assume-attribute.cpp @@ -73,4 +73,5 @@ int assume_and_fallthrough_at_the_same_attrstmt(int a, int b) { void assume_opaque_gh151854_no_crash() { extern bool opaque(); [[assume(opaque())]]; // no-crash + // expected-warning@-1 {{assumption is ignored because it contains (potential) side-effects}} }