]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Drop need for constant I in ctf test
authorAlexandre Oliva <oliva@adacore.com>
Wed, 22 Feb 2023 17:35:31 +0000 (14:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 22 Feb 2023 17:38:17 +0000 (14:38 -0300)
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.

gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c

index a36dd9b6b90a982060a15c8b0ff5cacffa41a48e..e6c3199f913d72a3f0cf83bc4f98d14dd40d56c8 100644 (file)
@@ -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;