Skip to content

Commit 4b7d400

Browse files
authored
[analyzer] Fix broken testcase (#75216)
When merging commit c873f77 I didn't manually rebase it onto the tip of the main branch, so I didn't notice that the testcase that's added by it needs to be tweaked to account for the effects of commit 2f29ded (which was also merged by me a few days ago).
1 parent 935c6a2 commit 4b7d400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Analysis/enum-cast-out-of-range.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ enum WidgetKind { A=1, B, C, X=99 }; // expected-note {{enum declared here}}
226226
void foo() {
227227
WidgetKind c = static_cast<WidgetKind>(3); // OK
228228
WidgetKind x = static_cast<WidgetKind>(99); // OK
229-
WidgetKind d = static_cast<WidgetKind>(4); // expected-warning {{The value provided to the cast expression is not in the valid range of values for 'WidgetKind'}}
229+
WidgetKind d = static_cast<WidgetKind>(4); // expected-warning {{The value '4' provided to the cast expression is not in the valid range of values for 'WidgetKind'}}
230230

231231
ignore_unused(c, x, d);
232232
}

0 commit comments

Comments
 (0)