summaryrefslogtreecommitdiff
path: root/flang/test/Semantics/structconst07.f90
blob: d61c54200dc82d1f278e196f5f20448caaa70982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! 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