Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/do_concurrent_3.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! PR 56519 - flag impure intrinsic subroutine calls | |
3 ! within DO CONCURRENT | |
4 program main | |
5 implicit none | |
6 integer :: i | |
7 real :: array(123), val | |
8 | |
9 do concurrent (i = 1:123) | |
10 call random_number (val) ! { dg-error "is not PURE" } | |
11 array(i) = val | |
12 end do | |
13 end program main |