summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/include_5.f90
blob: 2bfd2bb09dd136a697f710889dd86728c27b7e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do compile }
! { dg-options "-cpp" }
!
! PR fortran/37821
!
! Ensure that for #include "..." and for include the
! current directory/directory of the source file is
! included.

subroutine one()
  include "include_4.inc"
  integer(i4) :: i
end subroutine one

subroutine two()
# include "include_4.inc"
  integer(i4) :: i
end subroutine two