aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2023-02-22 14:35:31 -0300
committerAlexandre Oliva <oliva@gnu.org>2023-02-22 14:38:17 -0300
commitc20ab9bcf06709b9c13fe3838d12d58490af9e78 (patch)
tree147c66dd0537a35aa8f78da4384f361e7682cee6 /gcc
parent2d6a0fd3bddb9341f1512c21fcc55b3d39d9cd0e (diff)
downloadgcc-c20ab9bcf06709b9c13fe3838d12d58490af9e78.zip
gcc-c20ab9bcf06709b9c13fe3838d12d58490af9e78.tar.gz
gcc-c20ab9bcf06709b9c13fe3838d12d58490af9e78.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/debug/ctf/ctf-complex-1.c6
1 files 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 a36dd9b..e6c3199 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;