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.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [pr19926.f90] - Blame information for rev 399

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
module b
3
  type cat
4
     integer :: i = 0
5
  end type cat
6
end module b
7
 
8
program a
9
  use b
10
  type(cat) z
11
  integer :: i = 0, j(4,3,2) = 0
12
  call string_comp(i)
13
  if (i /= 3) call abort
14
  call string_comp(z%i)
15
  if (z%i /= 3) call abort
16
  call string_comp(j(1,2,1))
17
  if (j(1,2,1) /= 3) call abort
18
end program a
19
 
20
subroutine string_comp(i)
21
   integer, parameter :: map(0:50) = 3
22
   integer :: i
23
   i = map(42)
24
end subroutine string_comp
25
 
26
! { dg-final { cleanup-modules "b" } }

powered by: WebSVN 2.1.0

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