summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/class_49.f90
blob: 0c0b2b8019fbbdae1b7a9fdffb658f166d4fbaa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
!
! PR fortran/52029
!

elemental subroutine foo()
  type t
  end type t
  class(t), allocatable :: x
  if (allocated(x)) i = 5
end