summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/compile/contained_3.f90
blob: da5e8475c54e02a8c449505a0b6ed0782534c829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! Program to check using parent variables in more than one contained function
program contained_3
   implicit none
   integer var
contains
   subroutine one
      var = 1
   end subroutine
   subroutine two
      var = 2
   end subroutine
end program