summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/function_types_3.f90
blob: 8d00f5f7f1e0c6faf5dd0495d3c799e0b2b104c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
!
! Contributed by Vittorio Zecca <zeccav@gmail.com>
!
! PR 50401: SIGSEGV in resolve_transfer

  interface 
    function f()      ! { dg-error "must be a dummy argument" }
      dimension f(*)
    end function
  end interface
  print *,f()
end

! PR 50403: SIGSEGV in gfc_use_derived

type(f) function f()  ! { dg-error "conflicts with DERIVED attribute|is not accessible" }
  f=110               ! { dg-error "Unclassifiable statement" }
end