[clang] 6c9f1ce - [analyzer] Add missing expected-warning after #151908
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 5 08:53:17 PDT 2025
Author: Balazs Benics
Date: 2025-08-05T17:28:49+02:00
New Revision: 6c9f1ce429809e5a91683ed6cef9a435047bebd1
URL: https://github.com/llvm/llvm-project/commit/6c9f1ce429809e5a91683ed6cef9a435047bebd1
DIFF: https://github.com/llvm/llvm-project/commit/6c9f1ce429809e5a91683ed6cef9a435047bebd1.diff
LOG: [analyzer] Add missing expected-warning after #151908
Added:
Modified:
clang/test/Analysis/cxx23-assume-attribute.cpp
Removed:
################################################################################
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 at -1 {{assumption is ignored because it contains (potential) side-effects}}
}
More information about the cfe-commits
mailing list