From: Jakub Jelinek Date: Thu, 10 Feb 2022 23:27:11 +0000 (+0100) Subject: testsuite: Fix up g++.dg/warn/Wuninitialized-32.C test for ilp32 [PR104373] X-Git-Tag: basepoints/gcc-13~1125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50243f4918c2ed7f1ddbf0e8df97a37aee73ebf2;p=thirdparty%2Fgcc.git testsuite: Fix up g++.dg/warn/Wuninitialized-32.C test for ilp32 [PR104373] The testcase FAILs whenever size_t is not unsigned long: FAIL: g++.dg/warn/Wuninitialized-32.C -std=c++98 (test for excess errors) Excess errors: .../gcc/testsuite/g++.dg/warn/Wuninitialized-32.C:4:7: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive] Fixed by using __SIZE_TYPE__ instead of unsigned long. 2022-02-11 Jakub Jelinek PR tree-optimization/104373 * g++.dg/warn/Wuninitialized-32.C (operator new[]): Use __SIZE_TYPE__ as type of the first argument instead of unsigned long. --- diff --git a/gcc/testsuite/g++.dg/warn/Wuninitialized-32.C b/gcc/testsuite/g++.dg/warn/Wuninitialized-32.C index 8b02b5c6adbf..144a99e0f938 100644 --- a/gcc/testsuite/g++.dg/warn/Wuninitialized-32.C +++ b/gcc/testsuite/g++.dg/warn/Wuninitialized-32.C @@ -1,7 +1,7 @@ // { dg-do compile } // { dg-additional-options "-Wall" } -void* operator new[](unsigned long, void* __p); +void* operator new[](__SIZE_TYPE__, void* __p); struct allocator {