data-already-1.f 321 B

123456789101112131415161718
  1. ! { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } }
  2. IMPLICIT NONE
  3. INCLUDE "openacc_lib.h"
  4. INTEGER I
  5. CALL ACC_COPYIN (I)
  6. !$ACC DATA COPY (I)
  7. I = 0
  8. !$ACC END DATA
  9. END
  10. ! { dg-shouldfail "" }
  11. ! { dg-output "Trying to map into device .* object when .* is already mapped" }