public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6286] Drop need for constant I in ctf test
@ 2023-02-22 17:39 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2023-02-22 17:39 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c20ab9bcf06709b9c13fe3838d12d58490af9e78

commit r13-6286-gc20ab9bcf06709b9c13fe3838d12d58490af9e78
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Feb 22 14:35:31 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 <complex.h>
 
-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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-22 17:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22 17:39 [gcc r13-6286] Drop need for constant I in ctf test Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).