Commit | Line | Data |
---|---|---|
b811d2c2 | 1 | c Copyright 2005-2020 Free Software Foundation, Inc. |
7a55f279 WZ |
2 | |
3 | c This program is free software; you can redistribute it and/or modify | |
4 | c it under the terms of the GNU General Public License as published by | |
e22f8b7c | 5 | c the Free Software Foundation; either version 3 of the License, or |
7a55f279 | 6 | c (at your option) any later version. |
e22f8b7c | 7 | c |
7a55f279 WZ |
8 | c This program is distributed in the hope that it will be useful, |
9 | c but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | c GNU General Public License for more details. | |
e22f8b7c | 12 | c |
7a55f279 | 13 | c You should have received a copy of the GNU General Public License |
e22f8b7c | 14 | c along with this program. If not, see <http://www.gnu.org/licenses/>. |
7a55f279 WZ |
15 | |
16 | c Ihis file is the F77 source file for array-element.exp. It was written | |
17 | c by Wu Zhou. (woodzltc@cn.ibm.com) | |
18 | ||
19 | dimension a(10) | |
20 | write(*,*) 'This is a test.' | |
21 | call sub(a,10) | |
22 | write(*,*) a | |
23 | stop | |
24 | end | |
25 | ||
26 | subroutine sub(a,n) | |
27 | dimension a(n) | |
28 | do 100 i = 1, n | |
29 | a(i) = i | |
30 | 100 continue | |
31 | return | |
32 | end |