URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [host_assoc_function_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! Tests the fix for the bug PR33233, in which the reference to 'x'! in 'inner' wrongly host-associated with the variable 'x' rather! than the function.!! Contributed by Tobias Burnus <burnus@gcc.gnu.org>!MODULE mREAL :: x(3) = (/ 1.5, 2.5, 3.5 /)CONTAINSSUBROUTINE sif (x(2) .eq. 2.5) call abort ()CONTAINSFUNCTION x(n, m)integer, optional :: mif (present(m)) thenx = REAL(n)**melsex = 0.0end ifEND FUNCTIONEND SUBROUTINE sEND MODULE muse mcall send! { dg-final { cleanup-modules "m" } }
