Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/f2c_3.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 run } ! { dg-options "-ff2c" } ! Verifies that internal functions are not broken by f2c calling conventions program test real, target :: f real, pointer :: q real :: g f = 1.0 q=>f g = foo(q) if (g .ne. 1.0) STOP 1 contains function foo (p) real, pointer :: foo real, pointer :: p foo => p end function end program