Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/strided-alloc-ptr.f90

raw
1 implicit none
2 type t
3 integer, allocatable :: i, j(:)
4 integer, pointer :: k, ll(:)
5 end type t
6 type(t) :: x(2)
7
8 !$acc enter data copyin(x)
9
10 !$acc enter data copyin(x(:)%i)
11 ! { dg-error "Component to the right of a part reference with nonzero rank must not have the ALLOCATABLE attribute" "" { target "*-*-*" } 10 }
12 ! { dg-error ".x. in MAP clause at .1. is not a proper array section" "" { target "*-*-*" } 10 }
13
14 !$acc enter data copyin(x(:)%j(3))
15 ! { dg-error "Component to the right of a part reference with nonzero rank must not have the ALLOCATABLE attribute" "" { target "*-*-*" } 14 }
16 ! { dg-error ".x. in MAP clause at .1. is not a proper array section" "" { target "*-*-*" } 14 }
17
18 !$acc enter data copyin(x(:)%j)
19 ! { dg-error "Component to the right of a part reference with nonzero rank must not have the ALLOCATABLE attribute" "" { target "*-*-*" } 18 }
20 ! { dg-error ".x. in MAP clause at .1. is not a proper array section" "" { target "*-*-*" } 18 }
21
22
23 !$acc enter data copyin(x(:)%k)
24 ! { dg-error "Component to the right of a part reference with nonzero rank must not have the POINTER attribute" "" { target "*-*-*" } 23 }
25 ! { dg-error ".x. in MAP clause at .1. is not a proper array section" "" { target "*-*-*" } 23 }
26
27 !$acc enter data copyin(x(:)%ll(3))
28 ! { dg-error "Component to the right of a part reference with nonzero rank must not have the POINTER attribute" "" { target "*-*-*" } 27 }
29 ! { dg-error ".x. in MAP clause at .1. is not a proper array section" "" { target "*-*-*" } 27 }
30
31 !$acc enter data copyin(x(:)%ll)
32 ! { dg-error "Component to the right of a part reference with nonzero rank must not have the POINTER attribute" "" { target "*-*-*" } 31 }
33 ! { dg-error ".x. in MAP clause at .1. is not a proper array section" "" { target "*-*-*" } 31 }
34 end