aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/realloc_on_assign_22.f90
blob: f759c6aca001f6498db0900ae347783116fffaf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-fcoarray=single" }
!
! PR fortran/43366
!
! Invalid assignment to an allocatable polymorphic var.
!
type t
end type t
class(t), allocatable :: caf[:]

caf = t() ! { dg-error "Assignment to polymorphic coarray at .1. is not permitted" }
end