2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42427.c
blobcb43dd2affba209cb0c77d4455ee8210cf2fe9dd
1 /* { dg-do assemble { target c99_runtime } } */
2 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fpeel-loops" } */
3 /* { dg-add-options c99_runtime } */
4 /* { dg-require-effective-target ilp32 } */
6 #include <complex.h>
8 extern double myabs (complex double);
10 void
11 test (double *help, complex double *wm, long nz)
13 long k;
14 double znew;
15 double zold;
16 for (k = 0; k < nz; k++)
18 znew = myabs (wm[k]);
19 zold = help[k];
20 help[k] = znew;