xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.fortran/array-element.f (revision 181254a7b1bdde6873432bffef2d2decc4b5c22f)
1c Copyright 2005-2017 Free Software Foundation, Inc.
2
3c This program is free software; you can redistribute it and/or modify
4c it under the terms of the GNU General Public License as published by
5c the Free Software Foundation; either version 3 of the License, or
6c (at your option) any later version.
7c
8c This program is distributed in the hope that it will be useful,
9c but WITHOUT ANY WARRANTY; without even the implied warranty of
10c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11c GNU General Public License for more details.
12c
13c You should have received a copy of the GNU General Public License
14c along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
16c Ihis file is the F77 source file for array-element.exp.  It was written
17c 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
30100     continue
31        return
32        end
33