OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [parameter_array_dummy.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR fortran/31188
3
program foo_mod
4
  implicit none
5
  character (len=1), parameter :: letters(2) = (/"a","b"/)
6
  call concat(1, [1])
7
  call concat(2, [2])
8
  call concat(3, [1,2])
9
  call concat(4, [2,1])
10
  call concat(5, [2,2,2])
11
contains
12
  subroutine concat(i, ivec)
13
    integer, intent(in)  :: i, ivec(:)
14
    write (*,*) i, "a" // letters(ivec)
15
  end subroutine concat
16
end program foo_mod
17
! { dg-output " *1 aa(\n|\r\n|\r)" }
18
! { dg-output " *2 ab(\n|\r\n|\r)" }
19
! { dg-output " *3 aaab(\n|\r\n|\r)" }
20
! { dg-output " *4 abaa(\n|\r\n|\r)" }
21
! { dg-output " *5 ababab(\n|\r\n|\r)" }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.