summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/error_recovery_1.f90
blob: 8d4f65baff979d1eb4f7e47dd0af4efa80ce9cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! PR fortran/24549 (and duplicate PR fortran/27487)
module gfcbug29_import
  interface
     subroutine foo (x)
       something :: dp ! { dg-error "Unclassifiable statement" }
       real (kind=dp) :: x ! { dg-error "has not been declared or is a variable, which does not reduce to a constant expression" }
     end subroutine foo
  end interface
end module gfcbug29_import

subroutine FOO
    X :: I ! { dg-error "Unclassifiable statement" }
    equivalence (I,I)
end