5 ! Fortran 2008, C1116 only permits a small subset of statements in BLOCK DATA
7 ! Part of the test case was contributed by Vittorio Zecca
33 ! class(*) :: zz ! See PR fortran/58857
42 f(x
)=x
! { dg-error "STATEMENT FUNCTION statement is not allowed inside of BLOCK DATA" }
43 interface ! { dg-error "INTERFACE statement is not allowed inside of BLOCK DATA" }
45 1 format() ! { dg-error "FORMAT statement is not allowed inside of BLOCK DATA" }
46 end block invalid
! { dg-error "Expecting END BLOCK DATA statement" }
48 ! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }