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
|
|
9 ! EXEC: ${F18} -funparse-with-symbols -Mstandard %s 2>&1 | ${FileCheck} %s
|
|
10
|
|
11 ! CHECK: end do
|
|
12
|
|
13 ! The following CHECK-NOT actively uses the fact that the leading zero of labels
|
|
14 ! would be removed in the unparse but not the line linked to warnings. We do
|
|
15 ! not want to see label do in the unparse only.
|
|
16 ! CHECK-NOT: do [1-9]
|
|
17
|
|
18 ! CHECK: A DO loop should terminate with an END DO or CONTINUE
|
|
19
|
|
20 subroutine foo0()
|
|
21 do 01 j=1,2
|
|
22 if (.true.) then
|
|
23 01 end if
|
|
24 end subroutine
|