2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_18.f90
blobf758408f81e3e6368536fb450e9010f255c02615
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 "requires an explicit interface" }
9 END PROGRAM
11 SUBROUTINE SUB(A,I)
12 REAL :: A
13 INTEGER, OPTIONAL :: I
14 END SUBROUTINE