aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/do_concurrent_3.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/do_concurrent_3.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/do_concurrent_3.f9013
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/do_concurrent_3.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/do_concurrent_3.f90
new file mode 100644
index 000000000..09bb0cce7
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/do_concurrent_3.f90
@@ -0,0 +1,13 @@
+! { dg-do compile }
+! PR 56519 - flag impure intrinsic subroutine calls
+! within DO CONCURRENT
+program main
+ implicit none
+ integer :: i
+ real :: array(123), val
+
+ do concurrent (i = 1:123)
+ call random_number (val) ! { dg-error "is not PURE" }
+ array(i) = val
+ end do
+end program main