Debian Codegraph @

gcc/testsuite/gfortran.dg/contiguous_9.f90

raw
1 program contiguous_pointer
2
3 type t
4 end type t
5
6 type s
7 class(t), dimension(:), contiguous, pointer :: x ! OK
8 class(t), contiguous, allocatable :: y ! { dg-error "has the CONTIGUOUS attribute but is not an array pointer" }
9 class(t), contiguous, pointer :: z ! { dg-error "has the CONTIGUOUS attribute but is not an array pointer" }
10 end type s
11
12 end program contiguous_pointer