rt_gccstream/gcc/testsuite/gfortran.dg/empty_function_1.f90

11 lines
210 B
Fortran

! { dg-do compile }
!
! PR fortran/38252
! FUNCTION rejected if both specification and execution part are empty
!
! Contributed by Daniel Kraft <d@domob.eu>
INTEGER FUNCTION test ()
CONTAINS
END FUNCTION test