c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / submodule_12.f08
blob6fba4bf645e5e5ad974f975794bc3444316beefa
1 ! { dg-do compile }
3 ! Test the fix for PR68237 in which 'foo' caused a seg fault rather than an error.
5 ! Contributed by Martin Reinecke  <martin@mpa-garching.mpg.de>
7 module m1
8   interface
9     module subroutine bar
10     end subroutine
11   end interface
12 end module m1
14 submodule (m1) m2
15 contains
16   module procedure foo ! { dg-error "must be in a generic module interface" }
17   end procedure ! { dg-error "Expecting END SUBMODULE statement" }
18 end submodule