From: Jakub Jelinek Date: Mon, 14 Apr 2025 17:35:20 +0000 (+0200) Subject: testsuite: Fix up ipa/pr119530.c testcase [PR119318] X-Git-Tag: basepoints/gcc-16~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebdf92b6067a357e7bb08bfde294cc19b50e6abb;p=thirdparty%2Fgcc.git testsuite: Fix up ipa/pr119530.c testcase [PR119318] I'm seeing +FAIL: gcc.dg/ipa/pr119530.c execution test on i686-linux. The problem is that when long is just 32-bit and so is unsigned, the testcase then behaves differently and should abort. Fixed by making the argument long long instead. While at it, just in case I've changed type of d variable to signed char as well just in case there is -funsigned-char 8-bit int target or something similar. 2025-04-14 Jakub Jelinek PR ipa/119318 * gcc.dg/ipa/pr119530.c (d): Change type from char to signed char. (e): Change argument type from long to long long. --- diff --git a/gcc/testsuite/gcc.dg/ipa/pr119530.c b/gcc/testsuite/gcc.dg/ipa/pr119530.c index 70f158a2de8..f99c4fdbe20 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr119530.c +++ b/gcc/testsuite/gcc.dg/ipa/pr119530.c @@ -5,8 +5,8 @@ struct a { int b; }; int c; -char d; -static int e(long f) { return f < 0; } +signed char d; +static int e(long long f) { return f < 0; } static void g(unsigned f) { c = e(~f); } int main() { int h;