view gcc/testsuite/gfortran.dg/func_result_7.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do compile }
!
! PR 50073: gfortran must not accept function name when result name is present
!
! Contributed by Vittorio Zecca <zeccav@gmail.com>

function fun() result(f)  ! { dg-error "RESULT variable" } 
  pointer fun             ! { dg-error "RESULT variable" }
  dimension fun(1)        ! { dg-error "RESULT variable" }
  f=0
end