]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: remove XFAIL in gcc.dg/analyzer/pr99716-1.c [PR108988]
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 3 Mar 2023 22:48:04 +0000 (17:48 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 3 Mar 2023 22:48:04 +0000 (17:48 -0500)
Jakub's r13-6441-gdbeccab7a1f5dc fix for PR tree-optimization/108988
has fixed this failing analyzer test.

gcc/testsuite/ChangeLog:
PR tree-optimization/108988
* gcc.dg/analyzer/pr99716-1.c (test_2): Remove xfail.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/gcc.dg/analyzer/pr99716-1.c

index 4fae368f3210ee4b0c1bedcd2394c3f939ac6dee..2ccdcc73a5c29a34977a3cc629596d43b21a24cc 100644 (file)
@@ -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;