From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 41D593858296; Wed, 22 Feb 2023 14:49:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41D593858296 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677077373; bh=JcUGCbyQJI3uN7g/XCn5sMg03F2zEfHaeDQUTskTNCk=; h=From:To:Subject:Date:From; b=jQTOB26hhFVyS2o5mkbKhgTPIeVmZ0G3ytsnmYLXcSuSfd7YK/EkyMk2ETKO/Ljk5 MTuFZyuFh6D7mGBSegmrftIRNhGjqFFSM4qMlM5xc7gmnCwB+RNw+UL2Q0Rs1rSD4S 1TRNCF2pZw+wHaGC9B1d6zwfubq7aNspXR2hV0uY= 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: 3439cccf89739e45d071826fd864ed221cb7a22a X-Git-Newrev: b336fd0748fa5eb46c484bd6af96f91eadd07833 Message-Id: <20230222144933.41D593858296@sourceware.org> Date: Wed, 22 Feb 2023 14:49:33 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b336fd0748fa5eb46c484bd6af96f91eadd07833 commit b336fd0748fa5eb46c484bd6af96f91eadd07833 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;