1! { dg-do compile } 2! { dg-additional-options "-fdump-tree-original" } 3 4program test 5 implicit none 6 integer :: q, i, j, k, m, n, o, p, r, s, t, u, v, w 7 logical :: l = .true. 8 9 !$acc data if(l) copy(i), copyin(j), copyout(k), create(m) & 10 !$acc no_create(n) & 11 !$acc present(o), pcopy(p), pcopyin(r), pcopyout(s), pcreate(t) & 12 !$acc deviceptr(u) 13 !$acc end data 14 15end program test 16! { dg-final { scan-tree-dump-times "pragma acc data" 1 "original" } } 17 18! { dg-final { scan-tree-dump-times "if" 1 "original" } } 19! { dg-final { scan-tree-dump-times "map\\(tofrom:i\\)" 1 "original" } } 20! { dg-final { scan-tree-dump-times "map\\(to:j\\)" 1 "original" } } 21! { dg-final { scan-tree-dump-times "map\\(from:k\\)" 1 "original" } } 22! { dg-final { scan-tree-dump-times "map\\(alloc:m\\)" 1 "original" } } 23! { dg-final { scan-tree-dump-times "map\\(no_alloc:n\\)" 1 "original" } } 24! { dg-final { scan-tree-dump-times "map\\(force_present:o\\)" 1 "original" } } 25! { dg-final { scan-tree-dump-times "map\\(tofrom:p\\)" 1 "original" } } 26! { dg-final { scan-tree-dump-times "map\\(to:r\\)" 1 "original" } } 27! { dg-final { scan-tree-dump-times "map\\(from:s\\)" 1 "original" } } 28! { dg-final { scan-tree-dump-times "map\\(alloc:t\\)" 1 "original" } } 29 30! { dg-final { scan-tree-dump-times "map\\(force_deviceptr:u\\)" 1 "original" } } 31