Skip to content

Commit d26745d

Browse files
Remove test code that does not test for invalidation
1 parent 5b9bcca commit d26745d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

clang/test/Analysis/stream-invalidate.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,6 @@ void test_fprintf() {
159159
// 69 is ascii for 'E'
160160
clang_analyzer_dump(a); // expected-warning {{42 S32b}}
161161
clang_analyzer_dump(output[1]); // expected-warning {{69 S32b}}
162-
if (r < 0) {
163-
// Failure
164-
fprintf(F1, "%s\t%u\n", output, a); // expected-warning {{File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior}}
165-
} else {
166-
char buffer[10];
167-
fscanf(F1, "%s", buffer);
168-
if (fseek(F1, 0, SEEK_SET) == 0) {
169-
fprintf(F1, "%s\t%u\n", buffer, a); // ok
170-
}
171-
}
172-
173162
fclose(F1);
174163
}
175164

0 commit comments

Comments
 (0)