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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
program trs
4
  implicit none
5
  integer :: size, ierr
6
  integer, allocatable, dimension(:) :: seed, check
7
  call test_random_seed(size)
8
  allocate(seed(size),check(size))
9
  call test_random_seed(put=seed)
10
  call test_random_seed(get=check)
11
  if (any (seed /= check)) call abort
12
contains
13
  subroutine test_random_seed(size, put, get)
14
    integer, optional :: size
15
    integer, dimension(:), optional :: put
16
    integer, dimension(:), optional :: get
17
    call random_seed(size, put, get)
18
  end subroutine test_random_seed
19
end program trs

powered by: WebSVN 2.1.0

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