PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_18.f90
blobc483c7da100c120688dc42fda54be2bdcbc5092d
1 ! { dg-do compile }
2 ! { dg-options "-fwhole-file -Wno-unused-dummy-argument" }
4 ! PR fortran/34260
6 PROGRAM MAIN
7 REAL A
8 CALL SUB(A) ! { dg-error "Explicit interface required" }
9 END PROGRAM
11 SUBROUTINE SUB(A,I)
12 REAL :: A
13 INTEGER, OPTIONAL :: I
14 END SUBROUTINE