re PR testsuite/83281 (libgomp.oacc-c-c++-common/reduction-cplx-flt.c and reduction...
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Dec 2017 13:34:41 +0000 (14:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Dec 2017 13:34:41 +0000 (14:34 +0100)
PR testsuite/83281
* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
j suffix instead of i.
* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
Likewise.

From-SVN: r255418

libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c

index 9387d56a9a5586b15a20245fe75aa99be8360a6b..d350e6770ef67935d42adfc41916f91a75fe2ef7 100644 (file)
@@ -1,3 +1,11 @@
+2017-12-05  Jakub Jelinek  <jakub@redhat.com>
+
+       PR testsuite/83281
+       * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
+       j suffix instead of i.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
+       Likewise.
+
 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
 
        * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
index 351e24091163bb3726fc11af1d6c219e6df21302..8fd4db97cb64d380173928b75d76b5de0e33af64 100644 (file)
@@ -99,7 +99,7 @@ int main (void)
     {
       double frac = ix * (1.0 / 1024) + 1.0;
       
-      ary[ix] = frac + frac * 2.0i - 1.0i;
+      ary[ix] = frac + frac * 2.0j - 1.0j;
       sum += ary[ix];
       prod *= ary[ix];
     }
index 2e6feba25d0f1efb3739d1ce47031095c2781a1c..f7cc1f25278c2b01ba18c5cf1943714585f3263f 100644 (file)
@@ -99,7 +99,7 @@ int main (void)
     {
       float frac = ix * (1.0f / 1024) + 1.0f;
       
-      ary[ix] = frac + frac * 2.0i - 1.0i;
+      ary[ix] = frac + frac * 2.0j - 1.0j;
       sum += ary[ix];
       prod *= ary[ix];
     }