3 ! Tests the fix for PR71156 in which the valid code (f7, f8 and f9 below)
4 ! triggered an error, while the invalid code (f1 to f6) compiled.
6 ! Contributed by Damian Rousn <damian@sourceryinstitute.org>
17 elemental module subroutine f4
19 pure module subroutine f5
21 recursive module subroutine f6
23 elemental module subroutine f7
25 pure module subroutine f8
27 recursive module subroutine f9
32 submodule(my_interface) my_implementation
35 elemental module subroutine f1 ! { dg-error "Mismatch in ELEMENTAL attribute" }
37 pure module subroutine f2 ! { dg-error "Mismatch in PURE attribute" }
39 recursive module subroutine f3 ! { dg-error "Mismatch in RECURSIVE attribute" }
41 module subroutine f4 ! { dg-error "ELEMENTAL prefix" }
43 module subroutine f5 ! { dg-error "PURE prefix" }
45 module subroutine f6 ! { dg-error "RECURSIVE prefix" }
47 elemental module subroutine f7
49 pure module subroutine f8
51 recursive module subroutine f9