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
93 lines
2.2 KiB
Fortran
93 lines
2.2 KiB
Fortran
! RUN: not %flang_fc1 -fdebug-unparse-with-symbols %s 2>&1 | FileCheck %s
|
|
! CHECK: Label '50' was not found
|
|
! CHECK: warning: Label '55' is in a construct that should not be used as a branch target here
|
|
! CHECK: Label '70' is not a branch target
|
|
! CHECK: Control flow use of '70'
|
|
! CHECK: error: Label '80' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '90' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '91' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '92' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '30' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '31' is in a construct that prevents its use as a branch target here
|
|
! CHECK-NOT: error: Label '32' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '40' is in a construct that prevents its use as a branch target here
|
|
! CHECK: error: Label '41' is in a construct that prevents its use as a branch target here
|
|
! CHECK-NOT: error: Label '42' is in a construct that prevents its use as a branch target here
|
|
|
|
subroutine sub00(a,b,n,m)
|
|
real a(n,m)
|
|
real b(n,m)
|
|
if (n .ne. m) then
|
|
goto 50
|
|
end if
|
|
6 n = m
|
|
end subroutine sub00
|
|
|
|
subroutine sub01(a,b,n,m)
|
|
real a(n,m)
|
|
real b(n,m)
|
|
if (n .ne. m) then
|
|
goto 55
|
|
else
|
|
55 continue
|
|
end if
|
|
60 n = m
|
|
end subroutine sub01
|
|
|
|
subroutine sub02(a,b,n,m)
|
|
real a(n,m)
|
|
real b(n,m)
|
|
if (n .ne. m) then
|
|
goto 70
|
|
else
|
|
return
|
|
end if
|
|
70 FORMAT (1x,i6)
|
|
end subroutine sub02
|
|
|
|
subroutine sub03(a,n)
|
|
real a(n)
|
|
forall (j=1:n)
|
|
80 a(n) = j
|
|
end forall
|
|
go to 80
|
|
end subroutine sub03
|
|
|
|
subroutine sub04(a,n)
|
|
real a(n)
|
|
where (a > 0)
|
|
90 a = 1
|
|
elsewhere (a < 0)
|
|
91 a = 2
|
|
elsewhere
|
|
92 a = 3
|
|
end where
|
|
if (n - 3) 90, 91, 92
|
|
end subroutine sub04
|
|
|
|
subroutine sub05(a)
|
|
real a(..)
|
|
select rank (a)
|
|
rank(1)
|
|
31 goto 30
|
|
rank(2)
|
|
goto 32
|
|
32 continue
|
|
30 continue
|
|
end select
|
|
goto 31
|
|
end
|
|
|
|
subroutine sub06(a)
|
|
class(*) a
|
|
select type (a)
|
|
type is (integer)
|
|
41 goto 40
|
|
type is (real)
|
|
goto 42
|
|
42 continue
|
|
40 continue
|
|
end select
|
|
goto 41
|
|
end
|