1 2 3 4 5 6 7 8 9 10 11 12 13 14
! { dg-do compile } ! { dg-options "-fwhole-file -Wno-unused-dummy-argument" } ! ! PR fortran/34260 ! PROGRAM MAIN REAL A CALL SUB(A) ! { dg-error "requires an explicit interface" } END PROGRAM SUBROUTINE SUB(A,I) REAL :: A INTEGER, OPTIONAL :: I END SUBROUTINE