OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [pr15140.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! PR 15140: we used to fail an assertion, because we don't use the
3
! argument of the subroutine directly, but instead use a copy of it.
4
function M(NAMES)
5
  CHARACTER*(*) NAMES(*)
6
  if (any(names(1:2).ne."asdfg")) call abort
7
  m = LEN(NAMES(1))
8
END function M
9
 
10
character(5) :: c(2)
11
c = "asdfg"
12
if(m(c).ne.5) call abort()
13
end

powered by: WebSVN 2.1.0

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