diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr22356-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr22356-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr22356-1.c b/gcc/testsuite/gcc.dg/pr22356-1.c new file mode 100644 index 00000000000..118b0b2d3ae --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr22356-1.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -std=gnu99" } */ +typedef _Complex float GFC_COMPLEX_4; +void product_c4 (GFC_COMPLEX_4 *src, GFC_COMPLEX_4 *dest, int len) +{ + int n; + GFC_COMPLEX_4 result; + for (n = 0; n < len; n++, src += 1) + result *= *src; + *dest = result; +} |