5 private :: bar ! { dg-warning "PRIVATE but has been given the binding label" }
6 private :: my_private_sub
7 private :: my_private_sub_2 ! { dg-warning "PRIVATE but has been given the binding label" }
8 public :: my_public_sub
10 subroutine bar() bind(c,name="foo")
13 subroutine my_private_sub() bind(c, name="")
14 end subroutine my_private_sub
16 subroutine my_private_sub_2() bind(c)
17 end subroutine my_private_sub_2
19 subroutine my_public_sub() bind(c, name="my_sub")
20 end subroutine my_public_sub
23 ! { dg-final { cleanup-modules "x" } }