[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Driver / std2018.f90
blobcf461cf89e4e194494566ff114e3c939ed8d9909
1 ! Ensure argument -std=f2018 works as expected.
3 !-----------------------------------------
4 ! FRONTEND FLANG DRIVER (flang-new -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