CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
157 lines
2.5 KiB
Fortran
157 lines
2.5 KiB
Fortran
!RUN: %python %S/../Semantics/test_errors.py %s %flang_fc1 -pedantic -Werror
|
|
blockdata
|
|
endblockdata
|
|
block data
|
|
end blockdata
|
|
block data
|
|
endblock data
|
|
|
|
subroutine one(p)
|
|
doubleprecision d1
|
|
double precision d2
|
|
enum, bind(c)
|
|
enumerator :: e1=1
|
|
endenum
|
|
enum, bind(c)
|
|
enumerator :: e2=2
|
|
end enum
|
|
class(*), pointer :: p
|
|
integer assigned
|
|
|
|
d1 = 0.
|
|
d2 = 0.
|
|
associate(s=>d1)
|
|
endassociate
|
|
associate(s=>d2)
|
|
end associate
|
|
block
|
|
endblock
|
|
block
|
|
end block
|
|
critical
|
|
endcritical
|
|
critical
|
|
end critical
|
|
do
|
|
enddo
|
|
do
|
|
end do
|
|
endfile(1)
|
|
end file(1)
|
|
if (.false.) then
|
|
elseif (.false.) then
|
|
else if (.false.) then
|
|
endif
|
|
if (.false.) then
|
|
end if
|
|
where ([.false.])
|
|
elsewhere ([.false.])
|
|
else where ([.false.])
|
|
endwhere
|
|
where ([.false.])
|
|
end where
|
|
forall(j=1:2)
|
|
endforall
|
|
forall(j=1:2)
|
|
end forall
|
|
selectcase(1)
|
|
case(1)
|
|
endselect
|
|
select case(1)
|
|
case(1)
|
|
end select
|
|
selecttype(p)
|
|
type is(doubleprecision)
|
|
endselect
|
|
select type(p)
|
|
type is(double precision)
|
|
end select
|
|
!PORTABILITY: deprecated usage
|
|
assign 10 to assigned
|
|
goto 10
|
|
10 go to 20
|
|
!PORTABILITY: deprecated usage
|
|
20 goto assigned
|
|
!PORTABILITY: deprecated usage
|
|
go to assigned
|
|
endsubroutine
|
|
|
|
subroutine two(x,y)
|
|
use iso_fortran_env, only: team_type
|
|
real, intent(inout) :: x
|
|
real, intent(in out) :: y
|
|
type(team_type) t
|
|
change team(t)
|
|
endteam
|
|
change team(t)
|
|
end team
|
|
end subroutine
|
|
subroutine three
|
|
endsubroutine three
|
|
subroutine four
|
|
end subroutine four
|
|
|
|
function f1()
|
|
f1 = 0.
|
|
endfunction
|
|
function f2()
|
|
f2 = 0.
|
|
end function
|
|
function f3()
|
|
f3 = 0.
|
|
endfunction f3
|
|
function f4()
|
|
f4 = 0.
|
|
end function f4
|
|
module m1
|
|
interface
|
|
module subroutine p1
|
|
endsubroutine
|
|
module subroutine p2
|
|
end subroutine
|
|
module subroutine p3
|
|
endsubroutine p3
|
|
module subroutine p4
|
|
end subroutine p4
|
|
endinterface
|
|
interface
|
|
end interface
|
|
interface g1
|
|
endinterface g1
|
|
interface g2
|
|
end interface g2
|
|
endmodule
|
|
module m2
|
|
end module
|
|
module m3
|
|
endmodule m3
|
|
module m4
|
|
end module m4
|
|
submodule(m1) sm1
|
|
contains
|
|
module procedure p1
|
|
endprocedure
|
|
endsubmodule
|
|
submodule(m1) sm2
|
|
contains
|
|
module procedure p2
|
|
end procedure
|
|
end submodule
|
|
submodule(m1) sm3
|
|
contains
|
|
module procedure p3
|
|
endprocedure p3
|
|
endsubmodule sm3
|
|
submodule(m1) sm4
|
|
contains
|
|
module procedure p4
|
|
end procedure p4
|
|
end submodule sm4
|
|
|
|
program p
|
|
!PORTABILITY: missing space
|
|
realprogrammersusefortran
|
|
!PORTABILITY: missing space
|
|
commonprogrammersusefortran
|
|
endprogram p
|