Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/interface_21.f90 @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! PR33162 INTRINSIC functions as ACTUAL argument ! Test case adapted from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org> module m implicit none contains subroutine sub(a) interface function a(x) real :: a, x intent(in) :: x end function a end interface print *, a(4.0) end subroutine sub end module m use m implicit none EXTERNAL foo ! implicit interface is undefined call sub(foo) ! { dg-error "is not a function" } end