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
96 lines
3.2 KiB
Plaintext
96 lines
3.2 KiB
Plaintext
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
module m
|
|
interface operator(-)
|
|
!ERROR: OPERATOR(-) function 'f1' conflicts with intrinsic operator
|
|
function f1(x)
|
|
real, intent(in) :: x
|
|
end
|
|
!ERROR: OPERATOR(-) function 'f2' conflicts with intrinsic operator
|
|
attributes(device) function f2(x)
|
|
real, intent(in), device :: x(:)
|
|
end
|
|
function f3(x) ! ok
|
|
real, intent(in), device :: x(:,:)
|
|
end
|
|
!ERROR: OPERATOR(-) function 'f4' conflicts with intrinsic operator
|
|
attributes(device) function f4(x)
|
|
real, intent(in) :: x(:,:,:)
|
|
end
|
|
!ERROR: OPERATOR(-) function 'f5' conflicts with intrinsic operator
|
|
function f5(x)
|
|
real, intent(in), unified :: x(:,:,:,:)
|
|
end
|
|
!ERROR: OPERATOR(-) function 'f6' conflicts with intrinsic operator
|
|
attributes(device) function f6(x)
|
|
real, intent(in), managed :: x(:,:,:,:,:)
|
|
end
|
|
end interface
|
|
interface operator(*)
|
|
!ERROR: OPERATOR(*) function 'f11' conflicts with intrinsic operator
|
|
function f11(x, y)
|
|
real, intent(in) :: x, y
|
|
end
|
|
!ERROR: OPERATOR(*) function 'f12' conflicts with intrinsic operator
|
|
attributes(device) function f12(x, y)
|
|
real, intent(in), device :: x, y(:)
|
|
end
|
|
!ERROR: OPERATOR(*) function 'f13' conflicts with intrinsic operator
|
|
attributes(device) function f13(x, y)
|
|
real, intent(in) :: x(:), y
|
|
end
|
|
function f14a(x, y) ! ok
|
|
real, intent(in), device :: x(:)
|
|
real, intent(in) :: y(:)
|
|
end
|
|
function f14b(x, y) ! ok
|
|
real, intent(in) :: x
|
|
real, intent(in), device :: y(:,:)
|
|
end
|
|
!ERROR: OPERATOR(*) function 'f15' conflicts with intrinsic operator
|
|
function f15(x, y)
|
|
real, intent(in) :: x(:,:)
|
|
real, intent(in), unified :: y
|
|
end
|
|
!ERROR: OPERATOR(*) function 'f16' conflicts with intrinsic operator
|
|
attributes(device) function f16(x, y)
|
|
real, intent(in), device :: x(:,:)
|
|
real, intent(in), managed :: y(:,:)
|
|
end
|
|
end interface
|
|
interface assignment(=)
|
|
!ERROR: Defined assignment subroutine 's1' conflicts with intrinsic assignment
|
|
subroutine s1(x, y)
|
|
real, intent(in out) :: x
|
|
real, intent(in) :: y
|
|
end
|
|
!ERROR: Defined assignment subroutine 's2' conflicts with intrinsic assignment
|
|
attributes(device) subroutine s2(x, y)
|
|
real, intent(in out), device :: x(:)
|
|
real, intent(in), device :: y
|
|
end
|
|
!ERROR: Defined assignment subroutine 's3' conflicts with intrinsic assignment
|
|
attributes(device) subroutine s3(x, y)
|
|
real, intent(in out) :: x(:)
|
|
real, intent(in) :: y(:)
|
|
end
|
|
subroutine s4a(x, y) ! ok
|
|
real, intent(in out), device :: x(:,:)
|
|
real, intent(in) :: y
|
|
end
|
|
subroutine s4b(x, y) ! ok
|
|
real, intent(in out) :: x(:,:)
|
|
real, intent(in), device :: y(:,:)
|
|
end
|
|
!ERROR: Defined assignment subroutine 's5' conflicts with intrinsic assignment
|
|
subroutine s5(x, y)
|
|
real, intent(in out) :: x(:,:,:)
|
|
real, intent(in), unified :: y
|
|
end
|
|
!ERROR: Defined assignment subroutine 's6' conflicts with intrinsic assignment
|
|
attributes(device) subroutine s6(x, y)
|
|
real, intent(in out), device :: x(:,:,:)
|
|
real, intent(in), managed :: y(:,:,:)
|
|
end
|
|
end interface
|
|
end
|