Debian Codegraph @

gcc/testsuite/gfortran.dg/do_concurrent_9.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-std=f2018" }
3 program do_concurrent_default_none
4 implicit none
5 integer :: i, x, y, z
6 x = 0
7 y = 0
8 z = 0
9 do concurrent (i = 1:10) default(none) shared(x) local(y)
10 ! { dg-error "Variable 'z' .* not specified in a locality spec .* but required due to DEFAULT \\(NONE\\)" "" { target *-*-* } .-1 }
11 x = x + i
12 y = i * 2
13 z = z + 1 ! { dg-error "Variable 'z' .* not specified in a locality spec .* but required due to DEFAULT \\(NONE\\)" }
14 end do
15 end program do_concurrent_default_none