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/] [parameter_array_dummy.f90] - Rev 312
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
! PR fortran/31188
program foo_mod
implicit none
character (len=1), parameter :: letters(2) = (/"a","b"/)
call concat(1, [1])
call concat(2, [2])
call concat(3, [1,2])
call concat(4, [2,1])
call concat(5, [2,2,2])
contains
subroutine concat(i, ivec)
integer, intent(in) :: i, ivec(:)
write (*,*) i, "a" // letters(ivec)
end subroutine concat
end program foo_mod
! { dg-output " *1 aa(\n|\r\n|\r)" }
! { dg-output " *2 ab(\n|\r\n|\r)" }
! { dg-output " *3 aaab(\n|\r\n|\r)" }
! { dg-output " *4 abaa(\n|\r\n|\r)" }
! { dg-output " *5 ababab(\n|\r\n|\r)" }
Go to most recent revision | Compare with Previous | Blame | View Log