Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/contiguous_9.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
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 |