]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/113634 - fixup declarations of calloc/realloc
authorRichard Biener <rguenther@suse.de>
Wed, 19 Mar 2025 17:48:09 +0000 (18:48 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Mar 2025 17:50:00 +0000 (18:50 +0100)
Then we can also remove the added -std=gnu17

PR testsuite/113634
* gcc.dg/Wfree-nonheap-object-7.c: Adjust calloc and realloc
declarations, remove -std=gnu17.

gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c

index 52cfbf9ec5d6f27a761a9877ec5730a3c6edba1a..c13b7ca6bb047a7fcbc3bcfca6305b6bf17fbfbb 100644 (file)
@@ -1,9 +1,9 @@
 /* { dg-do compile } */
-/* { dg-options "-std=gnu17 -O2 -Wfree-nonheap-object" } */
+/* { dg-options "-O2 -Wfree-nonheap-object" } */
 
 struct local_caches *get_local_caches_lcs;
-void *calloc(long, long);
-void *realloc();
+void *calloc(__SIZE_TYPE__, __SIZE_TYPE__);
+void *realloc(void *, __SIZE_TYPE__);
 
 struct local_caches {
   int *t_mem_caches;