mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
19 lines
465 B
Fortran
19 lines
465 B
Fortran
! { dg-do compile }
|
|
! { dg-options "-fdec-structure" }
|
|
!
|
|
! Test error handling for %FILL
|
|
!
|
|
implicit none
|
|
|
|
structure /s/
|
|
integer(2) i /3/
|
|
integer(2) %fill /4/ ! { dg-error "cannot have an initializer" }
|
|
integer(2), pointer :: %fill ! { dg-error "cannot have attributes" }
|
|
end structure
|
|
|
|
type t
|
|
integer %fill ! { dg-error "not allowed outside STRUCTURE" }
|
|
endtype
|
|
|
|
end
|