aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/abstract_type_1.f90
blob: 09757b1f92952482f01c6347488238d746f7b490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-std=f95" }

! Abstract Types.
! Check that ABSTRACT is rejected for F95.

MODULE m

  TYPE, ABSTRACT :: t ! { dg-error "Fortran 2003" }
    INTEGER :: x
  END TYPE t ! { dg-error "END MODULE" }

END MODULE m