view gcc/testsuite/gfortran.dg/used_types_18.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-std=f2003" }
!
! Fortran 2003 allowes TYPE without components
! The error message for -std=f95 is tested in
! gfortran.dg/access_spec_2.f90
!
! PR fortran/33188
!
type t
end type

type(t) :: a
print *, a
end