summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/class_3.f03
blob: 8e15f0e57a577739c2445a2f28a2f2679e30d7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-std=f95" }
!
! PR 40940: [F03] CLASS statement
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

 type :: t
  integer :: comp
 end type

 class(t), pointer :: cl  ! { dg-error "CLASS statement" }

end