diff options
author | Richard Biener <rguenther@suse.de> | 2025-03-19 18:48:09 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-03-19 18:50:00 +0100 |
commit | 12b2c414b6d0e0d1b3d328b58d654c19c30bee8c (patch) | |
tree | c1d88cc0b85ee25baa58291dbb7b164302ba67c6 /gcc | |
parent | b6953ec3e1ced56b190d95637b966762c09a13b4 (diff) | |
download | gcc-12b2c414b6d0e0d1b3d328b58d654c19c30bee8c.zip gcc-12b2c414b6d0e0d1b3d328b58d654c19c30bee8c.tar.gz gcc-12b2c414b6d0e0d1b3d328b58d654c19c30bee8c.tar.bz2 |
testsuite/113634 - fixup declarations of calloc/realloc
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c b/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c index 52cfbf9..c13b7ca 100644 --- a/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c +++ b/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c @@ -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; |