URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [host_assoc_function_9.f90] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }! Tests the fix for the bug PR40629, in which the reference to 'x'! in 'upper' wrongly host-associated with the symbol 'x' at module! leve rather than the function.!! Contributed by Philippe Marguinaud <philippe.marguinaud@meteo.fr>!MODULE mREAL :: x = 0CONTAINSsubroutine scall uppercall lowerCONTAINSSUBROUTINE uppery = x(3,1)if (int(y) .ne. 3) call abortEND SUBROUTINEFUNCTION x(n, m)x = m*nEND FUNCTIONSUBROUTINE lowery = x(2,1)if (int(y) .ne. 2) call abortEND SUBROUTINEEND SUBROUTINEEND MODULEuse mcall send! { dg-final { cleanup-modules "m" } }
Go to most recent revision | Compare with Previous | Blame | View Log
