Skip to content

Commit 4093fc7

Browse files
authored
Change expected error to 'increment' rather than 'statement' (#907)
1 parent 4b47004 commit 4093fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CheckedC/inferred-bounds/widened-bounds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ void f33() {
12441244

12451245
void f34(_Nt_array_ptr<char> p : count(i), int i, int flag) {
12461246
if (*(p + i)) {
1247-
flag ? i++ : i; // expected-error {{inferred bounds for 'p' are unknown after statement}}
1247+
flag ? i++ : i; // expected-error {{inferred bounds for 'p' are unknown after increment}}
12481248

12491249
if (*(p + i + 1))
12501250
{}

0 commit comments

Comments
 (0)