aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/pr99716-1.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c b/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c
index 4fae368..2ccdcc7 100644
--- a/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/pr99716-1.c
@@ -27,11 +27,7 @@ test_2 (void)
FILE *fp = fopen ("/tmp/test", "w");
fprintf (fp, "hello");
}
-} /* { dg-warning "leak of FILE 'fp'" "" { xfail *-*-* } } */
-/* TODO: fails on some targets due to fprintf call being optimized to
- __builtin_fwrite with a size argument (idx 2) that fails
- gimple_builtin_call_types_compatible_p, and thus the known_function
- for __builtin_fwrite not being used (PR middle-end/108988). */
+} /* { dg-warning "leak of FILE 'fp'" } */
FILE *fp3;