aboutsummaryrefslogtreecommitdiff
blob: 1ceee99d1ed86598327ed4d2c0e73c1832719d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! RUN: %S/test_errors.sh %s %t %flang_fc1
! C1138 -- 
! A branch (11.2) within a DO CONCURRENT construct shall not have a branch
! target that is outside the construct.

subroutine s1()
  do concurrent (i=1:10)
!ERROR: Control flow escapes from DO CONCURRENT
    goto 99
  end do

99 print *, "Hello"

end subroutine s1