Hi!

The i suffix in C++14 does something different now, so I've changed
it to use the j suffix which stayed as is.

Regtested on x86_64-linux and i686-linux, committed to trunk.

2017-12-05  Jakub Jelinek  <ja...@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.

--- libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c.jj 
2017-02-09 12:59:36.000000000 +0100
+++ libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c    
2017-12-05 13:17:55.698446879 +0100
@@ -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];
     }
--- libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c.jj 
2017-02-09 12:59:36.000000000 +0100
+++ libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c    
2017-12-05 13:17:40.953631736 +0100
@@ -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];
     }

        Jakub

Reply via email to