OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.fortran/] [subarray.f] - Blame information for rev 178

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
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 3 of the License, or
6
c (at your option) any later version.
7
c
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
c
13
c You should have received a copy of the GNU General Public License
14
c along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
16
c Ihis file is the Fortran source file for subarray.exp.  It was written
17
c by Wu Zhou. (woodzltc@cn.ibm.com)
18
 
19
        PROGRAM subarray
20
 
21
        character *7 str
22
        integer array(7)
23
 
24
c 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.