bolt/deps/llvm-18.1.8/flang/test/Driver/flang-experimental-polymorphism-flag.f90
2025-02-14 19:21:04 +01:00

10 lines
427 B
Fortran

! Test -flang-experimental-hlfir flag
! RUN: %flang_fc1 -flang-experimental-polymorphism -emit-fir -o - %s | FileCheck %s
! RUN: not %flang_fc1 -emit-fir -o - %s 2>&1 | FileCheck %s --check-prefix NO-POLYMORPHISM
! CHECK: func.func @_QPtest(%{{.*}}: !fir.class<none> {fir.bindc_name = "poly"})
subroutine test(poly)
class(*) :: poly
end subroutine test
! NO-POLYMORPHISM: not yet implemented: support for polymorphic types