Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr59670.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR middle-end/59670 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O1 -fopenmp-simd" } */ | |
4 | |
5 int d[1024]; | |
6 | |
7 int | |
8 foo (int j, int b) | |
9 { | |
10 int l, c = 0; | |
11 #pragma omp simd reduction(+: c) | |
12 for (l = 0; l < b; ++l) | |
13 c += d[j + l]; | |
14 return c; | |
15 } |