Files
TheRock/compiler/amd-llvm/flang/test/Examples/feature-list-functions.f90
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

78 lines
2.2 KiB
Fortran

! UNSUPPORTED: system-windows
! REQUIRES: plugins, examples
! XFAIL: system-aix
! RUN: %flang_fc1 -load %llvmshlibdir/flangFeatureList%pluginext \
! RUN: -plugin feature-list %s 2>&1 | FileCheck %s
program list_features_test
implicit none
call test_sub(test_func(2, 3), 4)
contains
subroutine test_sub(a, b)
integer, intent(in) :: a, b
print "(I0)", a + b
end subroutine
integer function test_func(a, b)
integer, intent(in) :: a, b
test_func = a * b
end function
end program list_features_test
! CHECK: Name: 19
! CHECK-NEXT: Expr: 11
! CHECK-NEXT: DataRef: 5
! CHECK-NEXT: Designator: 5
! CHECK-NEXT: ActualArg: 4
! CHECK-NEXT: ActualArgSpec: 4
! CHECK-NEXT: EntityDecl: 4
! CHECK-NEXT: LiteralConstant: 4
! CHECK-NEXT: ActionStmt: 3
! CHECK-NEXT: Block: 3
! CHECK-NEXT: DeclarationTypeSpec: 3
! CHECK-NEXT: ExecutableConstruct: 3
! CHECK-NEXT: ExecutionPart: 3
! CHECK-NEXT: ExecutionPartConstruct: 3
! CHECK-NEXT: ImplicitPart: 3
! CHECK-NEXT: IntLiteralConstant: 3
! CHECK-NEXT: IntegerTypeSpec: 3
! CHECK-NEXT: IntrinsicTypeSpec: 3
! CHECK-NEXT: SpecificationPart: 3
! CHECK-NEXT: AttrSpec: 2
! CHECK-NEXT: Call: 2
! CHECK-NEXT: DeclarationConstruct: 2
! CHECK-NEXT: DummyArg: 2
! CHECK-NEXT: IntentSpec: 2
! CHECK-NEXT: IntentSpec::Intent: 2
! CHECK-NEXT: InternalSubprogram: 2
! CHECK-NEXT: ProcedureDesignator: 2
! CHECK-NEXT: SpecificationConstruct: 2
! CHECK-NEXT: TypeDeclarationStmt: 2
! CHECK-NEXT: AssignmentStmt: 1
! CHECK-NEXT: CallStmt: 1
! CHECK-NEXT: CharLiteralConstant: 1
! CHECK-NEXT: ContainsStmt: 1
! CHECK-NEXT: EndFunctionStmt: 1
! CHECK-NEXT: EndProgramStmt: 1
! CHECK-NEXT: EndSubroutineStmt: 1
! CHECK-NEXT: Expr::Add: 1
! CHECK-NEXT: Expr::Multiply: 1
! CHECK-NEXT: Format: 1
! CHECK-NEXT: FunctionReference: 1
! CHECK-NEXT: FunctionStmt: 1
! CHECK-NEXT: FunctionSubprogram: 1
! CHECK-NEXT: ImplicitPartStmt: 1
! CHECK-NEXT: ImplicitStmt: 1
! CHECK-NEXT: InternalSubprogramPart: 1
! CHECK-NEXT: MainProgram: 1
! CHECK-NEXT: OutputItem: 1
! CHECK-NEXT: PrefixSpec: 1
! CHECK-NEXT: PrintStmt: 1
! CHECK-NEXT: Program: 1
! CHECK-NEXT: ProgramStmt: 1
! CHECK-NEXT: ProgramUnit: 1
! CHECK-NEXT: SubroutineStmt: 1
! CHECK-NEXT: SubroutineSubprogram: 1
! CHECK-NEXT: Variable: 1