Debian Codegraph @

libgomp/testsuite/libgomp.fortran/strictly-structured-block-1.f90

raw
1 subroutine one
2 implicit none (external, type)
3 integer :: i, j
4 i = 5
5 j = 6
6 !$omp parallel
7 my_block : block
8 !$omp atomic write
9 i = 7
10 exit my_block
11
12 !$omp atomic write
13 j = 99 ! Should be unreachable
14
15 ! exit should jump here - end of block but inside of it.
16 end block my_block
17 if (i /= 7) stop 1
18 if (j /= 6) stop 2
19 end
20
21 call one
22 end