diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.fortran/examples-4/array_sections-3.f90')
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/examples-4/array_sections-3.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.fortran/examples-4/array_sections-3.f90 b/libgomp/testsuite/libgomp.fortran/examples-4/array_sections-3.f90 new file mode 100644 index 00000000000..94da51e4fc3 --- /dev/null +++ b/libgomp/testsuite/libgomp.fortran/examples-4/array_sections-3.f90 @@ -0,0 +1,17 @@ +! { dg-do run } + + call foo () +contains + subroutine foo () + integer, target :: A(30) + integer, pointer :: p(:) + !$omp target data map(A(1:4)) + p => A + !$omp target map(p(8:27)) map(A(1:4)) + A(3) = 777 + p(9) = 777 + !$omp end target + !$omp end target data + if (A(3) /= 777 .or. A(9) /= 777) call abort + end subroutine +end |