aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/class_8.f03
blob: 78f10ebe2bd9f9e389b7ca1ae315ab4c343ce17b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do compile }
! Test fixes for PR41618.
!
! Contributed by Janus Weil <janus@gcc.gnu.org>
!
 type t1
   integer :: comp
   class(t1),pointer :: cc
 end type

 class(t1) :: x ! { dg-error "must be dummy, allocatable or pointer" }

 x%comp = 3
 print *,x%comp

end