From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id C1B893858031; Thu, 16 Feb 2023 11:12:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1B893858031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676545965; bh=+29bWRSLbmNVTsUK6idztj6ym8rf5kCMZuwtj0a9h28=; h=From:To:Subject:Date:From; b=hvISshZT/Ej7k72EbmNvhINTIzhV8WuWKcQtt1Y7D5bEXSoUpyu7jXibql2eAQXy9 9upe8oiC7f7UR2e1kn/ia1p4UTw5y7ea4g8KTAfdxgrHMOPN+VE6bRhoQ19YwWaKo0 pJarxNe4LdgFCB5TRoC5MKrHcW1WPpGw3HaKRAo8= 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: 37e1c179655dcb4461d66f8dcdb0e4627bd3d0b9 X-Git-Newrev: 87b355ad7d5e70bb3163fb8565a334d5d2bffd96 Message-Id: <20230216111245.C1B893858031@sourceware.org> Date: Thu, 16 Feb 2023 11:12:45 +0000 (GMT) List-Id: https://gcc.gnu.org/g:87b355ad7d5e70bb3163fb8565a334d5d2bffd96 commit 87b355ad7d5e70bb3163fb8565a334d5d2bffd96 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;