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