[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr77260_2.f90
blob0c5ebe3a65618c520c5b2aa9d3f3f9eaa9e46af8
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
3 module foo
5 implicit none
7 private
8 public f1,f2
10 contains
12 integer function f1()
13 integer f2
14 integer f3 ! { dg-warning "Unused variable" }
15 f1=5
16 entry f2
17 f2=8
18 end function
19 end module
21 program test
22 use foo
23 implicit none
24 print *,f2()
25 end program