PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_58.f90
blob20b601a2f51caa8670ac18225b1e99cd24fe1f41
1 ! { dg-do compile }
3 ! PR 68440: [OOP] ICE on declaring class variable with wrong attribute
5 ! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
7 subroutine s
8 type t
9 end type
10 class(t), parameter :: x = t() ! { dg-error "cannot have the PARAMETER attribute" }
11 class(t), parameter :: y = x ! { dg-error "cannot have the PARAMETER attribute" }
12 class(t) :: z = x ! { dg-error "must be dummy, allocatable or pointer" }
13 end