aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/random_init.f90
blob: 36394589d8bc6e0464f693a2bfc3c4148041288c (plain)
1
2
3
4
5
6
7
8
9
10
11
! pr 15149
! verify the random number generator is functional
      program test_random
      implicit none
      real :: r(5) = 0.0

      call random_number(r)
      if (all (r .eq. 0)) call abort
      end program