1! Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. 2! 3! Licensed under the Apache License, Version 2.0 (the "License"); 4! you may not use this file except in compliance with the License. 5! You may obtain a copy of the License at 6! 7! http://www.apache.org/licenses/LICENSE-2.0 8! 9! Unless required by applicable law or agreed to in writing, software 10! distributed under the License is distributed on an "AS IS" BASIS, 11! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12! See the License for the specific language governing permissions and 13! limitations under the License. 14 15! Error test -- DO loop uses obsolete loop termination statement 16! See R1131 and C1133 17 18! By default, this is not an error and label do are rewritten to non-label do. 19! A warning is generated with -Mstandard 20 21 22! RUN: ${F18} -funparse-with-symbols -Mstandard %s 2>&1 | ${FileCheck} %s 23 24! CHECK: end do 25 26! The following CHECK-NOT actively uses the fact that the leading zero of labels 27! would be removed in the unparse but not the line linked to warnings. We do 28! not want to see label do in the unparse only. 29! CHECK-NOT: do [1-9] 30 31! CHECK: A DO loop should terminate with an END DO or CONTINUE 32 33subroutine foo0() 34 do 01 j=1,2 35 if (.true.) then 3601 end if 37end subroutine 38