aboutsummaryrefslogtreecommitdiff
blob: 5e28c7378f6141bd50158382358179d98eef0758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
! RUN: %S/test_errors.sh %s %t %f18
!C1117

subroutine test1(a, i)
  integer i
  real a(10)
  one: critical
    if (a(i) < 0.0) then
      a(i) = 20.20
    end if
  !ERROR: CRITICAL construct name mismatch
  end critical two
end subroutine test1

subroutine test2(a, i)
  integer i
  real a(10)
  critical
    if (a(i) < 0.0) then
      a(i) = 20.20
    end if
  !ERROR: CRITICAL construct name unexpected
  end critical two
end subroutine test2