1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -fopenacc
4 real, managed, allocatable :: b(:,:)
6 attributes(global) subroutine kernel(a,b,c,n,m)
8 integer, intent(in) :: m
10 real, managed :: b(n,m)
12 attributes(device) subroutine devsub(a,n)
19 !ERROR: dummy argument 'm=' has ATTRIBUTES(DEVICE) but its associated actual argument has no CUDA data attribute
20 call kernel<<<1,32>>>(a,b,b,4,8)
21 !$acc parallel loop copy(c)
23 call devsub(c,4) ! not checked in OpenACC construct