[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Driver / std2018.f90
blob1727f92127b711fdbf180f21cd5922b5b7626b38
1 ! Ensure argument -std=f2018 works as expected.
3 !-----------------------------------------
4 ! FRONTEND FLANG DRIVER (flang -fc1)
5 !-----------------------------------------
6 ! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT
7 ! RUN: %flang_fc1 -fsyntax-only -std=f2018 %s 2>&1 | FileCheck %s --check-prefix=GIVEN
8 ! RUN: %flang_fc1 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s --check-prefix=GIVEN
10 ! WITHOUT-NOT: A DO loop should terminate with an END DO or CONTINUE
12 ! GIVEN: A DO loop should terminate with an END DO or CONTINUE
14 subroutine foo2()
15 do 01 m=1,2
16 select case (m)
17 case default
18 print*, "default", m
19 case (1)
20 print*, "start"
21 01 end select
22 end subroutine