view gcc/testsuite/gfortran.dg/host_assoc_call_2.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! Tests the fix for PR36700, in which the call to the function would
! cause an ICE.
!
! Contributed by <terry@chem.gu.se>
!
module Diatoms
  implicit none
contains
  function InitialDiatomicX () result(v4)    ! { dg-error "has a type" }
    real(kind = 8), dimension(4) :: v4
    v4 = 1
  end function InitialDiatomicX
  subroutine FindDiatomicPeriod
    call InitialDiatomicX ()    ! { dg-error "which is not consistent with the CALL" }
  end subroutine FindDiatomicPeriod
end module Diatoms