diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr61486-1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr61486-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr61486-1.c b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr61486-1.c new file mode 100644 index 000000000..9ada58c8c --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr61486-1.c @@ -0,0 +1,13 @@ +/* PR middle-end/61486 */ +/* { dg-do compile } */ +/* { dg-options "-fopenmp" } */ + +int +foo (int *a) +{ + int i, j = 0; + #pragma omp target teams distribute simd linear(i, j) map(a[:10]) + for (i = 0; i < 10; i++) + a[i] = j++; + return i + j; +} |