]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.fortran/subarray.f
Automatic Copyright Year update after running gdb/copyright.py
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.fortran / subarray.f
CommitLineData
4a94e368 1c Copyright 2005-2022 Free Software Foundation, Inc.
ca929517
WZ
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
e22f8b7c 5c the Free Software Foundation; either version 3 of the License, or
ca929517 6c (at your option) any later version.
e22f8b7c 7c
ca929517
WZ
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.
e22f8b7c 12c
ca929517 13c You should have received a copy of the GNU General Public License
e22f8b7c 14c along with this program. If not, see <http://www.gnu.org/licenses/>.
ca929517
WZ
15
16c Ihis file is the Fortran source file for subarray.exp. It was written
17c by Wu Zhou. (woodzltc@cn.ibm.com)
18
19 PROGRAM subarray
20
21 character *7 str
22 integer array(7)
23
24c Initialize character array "str" and integer array "array".
25 str = 'abcdefg'
26 do i = 1, 7
27 array(i) = i
28 end do
29
30 write (*, *) str(2:4)
31 write (*, *) str(:3)
32 write (*, *) str(5:)
33 write (*, *) str(:)
34
35 END PROGRAM