summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/func_decl_2.f90
blob: 658883e65e21bd279fc7389195e5a685b4fba3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
! Test fix for PR16943 in which the double typing of
! N caused an error.
!
! Contributed by Paul Thomas  <pault@gcc.gnu.org>
!
  program bug8 
    implicit none 
    stop " OK. " 

  contains 

    integer function bugf(M) result (N) 
      integer, intent (in) :: M 
      integer :: N ! { dg-error "already has basic type of INTEGER" }
      N = M 
      return 
    end function bugf
  end program bug8