Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / execute / mainsub.f90
blob522e31c1c969e1723e5bb3c3708039b5dc2378e8
1 ! Program to test compilation of subroutines following the main program
2 program mainsub
3 implicit none
4 integer i
5 external test
7 i = 0
8 call test (i)
9 if (i .ne. 42) STOP 1
10 end program
12 subroutine test (p)
13 implicit none
14 integer p
16 p = 42
17 end subroutine