aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/used_types_25.f90
blob: 4d10813f6f86b3a827a153150dfc360499f3e5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
!
! Created to check this ambiguity when
! constructors were added. Cf. PR fortran/39427

module m
  type t
  end type t
end module m

use m
 type t ! { dg-error "Derived type definition of 't' at .1. has already been defined" }
 end type t ! { dg-error "Expecting END PROGRAM statement" }
end