c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_check_8.f90
blob99c6652f211c38ec2117db16df54af375d7cdd85
1 ! { dg-do compile }
2 ! { dg-options "-fcheck=pointer" }
4 ! PR 46809: [OOP] ICE with -fcheck=pointer for CLASS IS
6 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
8 type t
9 end type t
11 contains
13 subroutine sub(a)
14 class(t) :: a
15 select type (a)
16 class is (t)
17 print *, 'Hi there'
18 end select
19 end subroutine
21 end