PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / select_type_22.f03
blob68d2ff6a1693bf232b67ed613c14e48171a97de4
1 ! { dg-do compile }
3 ! PR 47330: [OOP] ICE on invalid source in connection with SELECT TYPE
5 ! Contributed by Andrew Benson <abenson@its.caltech.edu>
7   type treeNode
8   end type
9 contains
10   subroutine proc1 (thisNode)
11     class (treeNode), target :: thisNode
12     select type (thisNode)
13     type is (treeNode)
14        workNode => thisNode  ! { dg-error "Non-POINTER in pointer association context" }
15     end select
16   end subroutine
17 end