Debian Codegraph @

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

raw
1 ! { dg-do compile }
2
3 subroutine foo
4 type t
5 integer :: i, j
6 end type t
7
8 type(t) x
9
10 ! We should reject the duplicate reference here.
11 !$acc enter data copyin(x%i, x%i)
12 ! { dg-error ".x.i. appears more than once in map clauses" "" { target "*-*-*" } 11 }
13
14
15 end