Skip to content

Commit 6c9f1ce

Browse files
committed
[analyzer] Add missing expected-warning after #151908
1 parent 74af2ce commit 6c9f1ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/Analysis/cxx23-assume-attribute.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ int assume_and_fallthrough_at_the_same_attrstmt(int a, int b) {
7373
void assume_opaque_gh151854_no_crash() {
7474
extern bool opaque();
7575
[[assume(opaque())]]; // no-crash
76+
// expected-warning@-1 {{assumption is ignored because it contains (potential) side-effects}}
7677
}

0 commit comments

Comments
 (0)