173
|
1 ! RUN: %S/test_any.sh %s %t %f18
|
|
2 ! Error test -- DO loop uses obsolete loop termination statement
|
|
3 ! See R1131 and C1133
|
|
4
|
|
5 ! By default, this is not an error and label do are rewritten to non-label do.
|
|
6 ! A warning is generated with -Mstandard
|
|
7
|
|
8 ! EXEC: ${F18} -funparse-with-symbols -Mstandard %s 2>&1 | ${FileCheck} %s
|
|
9
|
|
10 ! CHECK: end do
|
|
11
|
|
12 ! The following CHECK-NOT actively uses the fact that the leading zero of labels
|
|
13 ! would be removed in the unparse but not the line linked to warnings. We do
|
|
14 ! not want to see label do in the unparse only.
|
|
15 ! CHECK-NOT: do [1-9]
|
|
16
|
|
17 ! CHECK: A DO loop should terminate with an END DO or CONTINUE
|
|
18
|
|
19 subroutine foo8()
|
|
20 use iso_fortran_env, only : team_type
|
|
21 type(team_type) :: odd_even
|
|
22 do 01 k=1,10
|
|
23 change team (odd_even)
|
|
24 01 end team
|
|
25 end subroutine
|