diff options
Diffstat (limited to 'test/Analysis/simple-stream-checks.c')
-rw-r--r-- | test/Analysis/simple-stream-checks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/simple-stream-checks.c b/test/Analysis/simple-stream-checks.c index ce57fa7..2f72574 100644 --- a/test/Analysis/simple-stream-checks.c +++ b/test/Analysis/simple-stream-checks.c @@ -87,5 +87,5 @@ void testPassConstPointer() { void testPassToSystemHeaderFunctionIndirectly() { FileStruct fs; fs.p = fopen("myfile.txt", "w"); - fakeSystemHeaderCall(&fs); -} // expected-warning {{Opened file is never closed; potential resource leak}} + fakeSystemHeaderCall(&fs); // invalidates fs, making fs.p unreachable +} // no-warning |