PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / warn_unused_function.f90
blob209cb7f0026a54d0371fa9bc33a45efc3833de03
1 ! { dg-do compile }
2 ! { dg-options "-Wunused-function" }
4 ! PR 54224: [4.8 Regression] Bogus -Wunused-function warning with static function
6 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
8 module mod_say_hello
9 private :: hello_integer
10 contains
11 subroutine say_hello()
12 call hello_integer(123)
13 end subroutine
15 subroutine hello_integer( a )
16 integer, intent(in) :: a
17 print *, "Hello ", a, "!"
18 end subroutine
19 end module