3 ! Checks that the name clash between the two submodules 'mod_s' is an error.
5 ! Contributed by Reinhold Bader <reinhold.bader@lrz.de>
15 submodule (mod_a) mod_s ! { dg-error "already being used as a MODULE" }
18 submodule (mod_a:mod_s) b
21 submodule (mod_a:b) mod_s ! { dg-error "already being used as a MODULE" }