2005-11-09 Randolph Chung <tausq@debian.org>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.fortran / subarray.f
CommitLineData
ca929517
WZ
1c Copyright 2005 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 2 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, write to the Free Software
15c Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17c Ihis file is the Fortran source file for subarray.exp. It was written
18c by Wu Zhou. (woodzltc@cn.ibm.com)
19
20 PROGRAM subarray
21
22 character *7 str
23 integer array(7)
24
25c Initialize character array "str" and integer array "array".
26 str = 'abcdefg'
27 do i = 1, 7
28 array(i) = i
29 end do
30
31 write (*, *) str(2:4)
32 write (*, *) str(:3)
33 write (*, *) str(5:)
34 write (*, *) str(:)
35
36 END PROGRAM
This page took 0.03186 seconds and 4 git commands to generate.