From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id E5D7F385841D; Wed, 22 Feb 2023 17:23:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5D7F385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677086614; bh=YUtIptHMxIJiJ5efbk30F1jQKHTc/dB+lXPJnr2GuOI=; h=From:To:Subject:Date:From; b=P4dvc+3tViLL1yEsNkSaAYrxSl7/Ue1MXuq/Rg8ei03w9ldsEFO54lpUxe4DeR62n PQoKQ165xR9/ckme3N+DFtL7FOsz6WHDZBONGZqm5Bpdbh/IyWrFmbYjmPdZGzc+B8 LTUiZ/mneHBzwtv5Dv3zjt/TiiOv8o1fMVRXALS0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] Drop need for constant I in ctf test X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 71420167ddb42fda6407da9813363b71c2ec74c4 X-Git-Newrev: 923cef9cf2a4b8ab89702a36abea0525fcaae9d4 Message-Id: <20230222172334.E5D7F385841D@sourceware.org> Date: Wed, 22 Feb 2023 17:23:34 +0000 (GMT) List-Id: https://gcc.gnu.org/g:923cef9cf2a4b8ab89702a36abea0525fcaae9d4 commit 923cef9cf2a4b8ab89702a36abea0525fcaae9d4 Author: Alexandre Oliva Date: Thu Feb 16 06:52:12 2023 -0300 Drop need for constant I in ctf test Though I is supposed to be a constant expression, this is not the case on vxworks, but this is not what this debug information format test is testing for, so use real constants to initialize complex variables. for gcc/testsuite/ChangeLog * gcc.dg/debug/ctf/ctf-complex-1.c: Do not test whether I is usable in initializers. Diff: --- gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c b/gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c index a36dd9b6b90..e6c3199f913 100644 --- a/gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c +++ b/gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c @@ -14,8 +14,8 @@ #include -double complex z1 = I * I; +double complex z1 = -1; -const long double complex z2 = I * I; +const long double complex z2 = -1; -float complex z4 = 1+2.11*I; +float complex z4 = 1;