Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/proc_decl_15.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 (2020-02-13) |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! PR fortran/35830 ! function f() real, allocatable :: f(:) allocate(f(1:3)) f(1:3)= (/9,8,7/) end function program test implicit none abstract interface function ai() real, allocatable :: ai(:) end function end interface procedure(ai) :: f if(any(f() /= [9,8,7])) STOP 1 if(size(f()) /= 3) STOP 2 end