Skip to content

Commit

Permalink
[flang] Fix expected error messages in tests to correspond with recen…
Browse files Browse the repository at this point in the history
…t update to compiler

Original-commit: flang-compiler/f18@95202dd
Reviewed-on: flang-compiler/f18#721
  • Loading branch information
klausler committed Sep 9, 2019
1 parent 1a7c1c1 commit de97404
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flang/test/semantics/call11.f90
Expand Up @@ -47,7 +47,7 @@ subroutine test
end forall
! ERROR: concurrent-header mask expression cannot reference an impure procedure
do concurrent (j=1:1, impure(j) /= 0) ! C1121
! ERROR: call to impure subroutine in DO CONCURRENT not allowed
! ERROR: call to impure procedure in DO CONCURRENT not allowed
a(j) = impure(j) ! C1139
end do
end subroutine
Expand Down
4 changes: 2 additions & 2 deletions flang/test/semantics/doconcurrent01.f90
Expand Up @@ -48,10 +48,10 @@ subroutine do_concurrent_test2(i,j,n,flag)
type(team_type) :: j
do concurrent (i = 1:n)
change team (j)
!ERROR: call to impure subroutine in DO CONCURRENT not allowed
!ERROR: call to impure procedure in DO CONCURRENT not allowed
!ERROR: IEEE_GET_FLAG not allowed in DO CONCURRENT
call ieee_get_flag(flag, flag2)
!ERROR: call to impure subroutine in DO CONCURRENT not allowed
!ERROR: call to impure procedure in DO CONCURRENT not allowed
!ERROR: IEEE_GET_HALTING_MODE not allowed in DO CONCURRENT
call ieee_get_halting_mode(flag, halting)
!ERROR: IEEE_SET_HALTING_MODE not allowed in DO CONCURRENT
Expand Down
2 changes: 1 addition & 1 deletion flang/test/semantics/doconcurrent02.f90
Expand Up @@ -18,7 +18,7 @@
! RUN: ${F18} -funparse-with-symbols %s 2>&1 | ${FileCheck} %s
! CHECK-NOT: image control statement not allowed in DO CONCURRENT
! CHECK-NOT: RETURN not allowed in DO CONCURRENT
! CHECK-NOT: call to impure subroutine in DO CONCURRENT not allowed
! CHECK-NOT: call to impure procedure in DO CONCURRENT not allowed
! CHECK-NOT: IEEE_GET_FLAG not allowed in DO CONCURRENT
! CHECK-NOT: ADVANCE specifier not allowed in DO CONCURRENT
! CHECK-NOT: SYNC ALL
Expand Down

0 comments on commit de97404

Please sign in to comment.