diff options
Diffstat (limited to 'gcc/testsuite/gfortran.fortran-torture/execute/random_init.f90')
-rw-r--r-- | gcc/testsuite/gfortran.fortran-torture/execute/random_init.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/random_init.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/random_init.f90 new file mode 100644 index 000000000..36394589d --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/execute/random_init.f90 @@ -0,0 +1,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 + + |