Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/mapping-tests-4.f90

raw
1 subroutine foo
2 type one
3 integer i, j
4 end type
5 type two
6 type(one) A, B
7 end type
8
9 type(two) x
10
11 ! This is accepted at present, although it represents a probably-unintentional
12 ! overlapping subcopy.
13 !$acc enter data copyin(x%A, x%A%i)
14 ! But this raises an error.
15 !$acc enter data copyin(x%A, x%A%i, x%A%i)
16 ! { dg-error ".x.a.i. appears more than once in map clauses" "" { target *-*-* } .-1 }
17 end