* gdb.fortran/array_element.f: New file.
[external/binutils.git] / gdb / testsuite / gdb.fortran / array-element.f
1 c Copyright 2005 Free Software Foundation, Inc.
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
5 c the Free Software Foundation; either version 2 of the License, or
6 c (at your option) any later version.
7
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.
12
13 c You should have received a copy of the GNU General Public License
14 c along with this program; if not, write to the Free Software
15 c Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
16
17 c Ihis file is the F77 source file for array-element.exp.  It was written
18 c by Wu Zhou. (woodzltc@cn.ibm.com)
19
20         dimension a(10)
21         write(*,*) 'This is a test.'
22         call sub(a,10)
23         write(*,*) a
24         stop
25         end
26
27         subroutine sub(a,n)
28         dimension a(n)
29         do 100 i = 1, n 
30           a(i) = i
31 100     continue
32         return
33         end