2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_array_13.f90
blob567bbf81546e5ce4ed5d2310531aa0bf43f8ba92
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! PR fortran/41587
7 type t0
8 integer :: j = 42
9 end type t0
11 type t
12 integer :: i
13 class(t0), allocatable :: foo(3) ! { dg-error "must have a deferred shape" }
14 end type t
16 type t2
17 integer :: i
18 class(t0), pointer :: foo(3) ! { dg-error "must have a deferred shape" }
19 end type t2
21 type t3
22 integer :: i
23 class(t0), allocatable :: foo[3] ! { dg-error "Upper bound of last coarray dimension must be '\\*'" }
24 end type t3
26 end