bolt/deps/llvm-18.1.8/flang/test/Semantics/structconst07.f90
2025-02-14 19:21:04 +01:00

15 lines
332 B
Fortran

! RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
type :: hasPointer
class(*), pointer :: sp
end type
type :: hasAllocatable
class(*), allocatable :: sa
end type
type(hasPointer) hp
type(hasAllocatable) ha
!CHECK: hp=haspointer(sp=NULL())
hp = hasPointer()
!CHECK: ha=hasallocatable(sa=NULL())
ha = hasAllocatable()
end