2 ! This tests the fix for PR28526, in which a public interface named
3 ! 'end' would be treated as a variable because the matcher tried
4 ! 'END INTERFACE' as an assignment and left the symbol modified in
5 ! failing. The various pitfalls that were encountered in developing
6 ! the fix are checked here.
8 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
13 ! The original PR from Yusuke IGUCHI <iguchi@coral.t.u-tokyo.ac.jp>
18 ! A contribution to the PR from Tobias Schlueter <tobi@gcc.gnu.org>
20 module procedure foo2
! { dg-error "is neither function nor" }
30 x
= 1.0 ! { dg-error "in INTERFACE" }
35 x
= 2.0 ! { dg-error "in INTERFACE block" }
41 x
= 3.0 ! { dg-error "in MODULE" }
48 function foo2
! { dg-error "Expected formal argument list" }
49 foo2
= 0 ! { dg-error "already been host associated" }
50 end function foo2
! { dg-error "Expecting END MODULE" }
56 x
= 4.0 ! { dg-error "in CONTAINS section" }