1 ! Copyright 2009-2019 Free Software Foundation, Inc.
3 ! This program is free software; you can redistribute it and/or modify
4 ! it under the terms of the GNU General Public License as published by
5 ! the Free Software Foundation; either version 3 of the License, or
6 ! (at your option) any later version.
8 ! This program is distributed in the hope that it will be useful,
9 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ! GNU General Public License for more details.
13 ! You should have received a copy of the GNU General Public License
14 ! along with this program. If not, see <http://www.gnu.org/licenses/>.
19 parameter (var_const
= 20)
33 integer :: var_a
= 10, var_b
= 11, var_c
= 12, var_i
= 14
37 integer :: var_x
= 30, var_y
= 31
42 if (var_i
.ne
. 1) call abort
43 var_i
= var_i
! i-is-1
48 if (var_i
.ne
. 2) call abort
49 var_i
= var_i
! i-is-2
54 var_i
= var_i
! i-is-3
59 use modmany
, only
: var_b
, var_d
=> var_c
, var_i
60 use moduse
, var_z
=> var_y
66 if (var_b
.ne
. 11) call abort
67 if (var_d
.ne
. 12) call abort
68 if (var_i
.ne
. 14) call abort
69 if (var_x
.ne
. 30) call abort
70 if (var_z
.ne
. 31) call abort
71 var_b
= var_b
! a-b-c-d