URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [module_parameter_array_refs_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-O" }! { dg-final { scan-assembler-not "i_am_optimized_away" } }!! PR fortran/50960!! PARAMETER arrays and derived types exists as static variables.! Check that the their read-only nature is taken into account! when optimizations are done.!module minteger, parameter :: PARA(*) = [1,2,3,4,5,6,7,8,9,10]end module msubroutine test()use minteger :: ii = 1if (para(i) /= 1) call i_am_optimized_away()end! { dg-final { cleanup-modules "m" } }
