1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.9.3.1 simd Construct
4 ! - A program that branches into or out of a simd region is non-conforming.
5 ! - The associated loops must be structured blocks
14 !ERROR: invalid branch leaving an OpenMP structured block
19 else if (i
.EQ
. 7) THEN
20 open (10, file
="random-file-name.txt", err
=20)
21 20 print *, "Error message doesn't branch out of the loop's structured block"
23 !ERROR: invalid branch leaving an OpenMP structured block
24 open (10, file
="random-file-name.txt", err
=10)
32 subroutine function1()
37 print *, "CORRECT SIMD LOOP"
40 end subroutine function1