PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_decl_29.f90
blob6a92118409fb2de6c8e80afaa4ee348c07707552
1 ! { dg-do compile }
3 ! PR 42418: PROCEDURE: Rejects interface which is both specific and generic procedure
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 interface gen
8 procedure gen
9 end interface
11 procedure(gen) :: p1
12 procedure(gen2) :: p2 ! { dg-error "may not be generic" }
13 procedure(sf) :: p3 ! { dg-error "may not be a statement function" }
14 procedure(char) :: p4
16 interface gen2
17 procedure char
18 end interface
20 sf(x) = x**2 ! { dg-warning "Obsolescent feature" }
22 contains
24 subroutine gen
25 end subroutine
27 subroutine char
28 end subroutine
30 end