Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/do_concurrent_3.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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 |