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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [g77/] [f77-edit-t-in.f] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
C Test Fortran 77 T edit descriptor for input
2
C      (ANSI X3.9-1978 Section 13.5.3.2)
3
C
4
C Origin: David Billinghurst <David.Billinghurst@riotinto.com>
5
C
6
C { dg-do run }
7
C { dg-options "-std=legacy" }
8
C
9
      integer i,j
10
      real a,b,c,d,e
11
      character*32 in
12
 
13
      in = '1234   8'
14
      read(in,'(T3,I1)') i
15
      if ( i.ne.3 )                   call abort()
16
      read(in,'(5X,TL4,I2)') i
17
      if ( i.ne.23 )                  call abort()
18
      read(in,'(3X,I1,TR3,I1)') i,j
19
      if ( i.ne.4 )                  call abort()
20
      if ( j.ne.8 )                  call abort()
21
 
22
      in = '   1.5  -12.62  348.75  1.0E-6'
23
 100  format(F6.0,TL6,I4,1X,I1,8X,I5,F3.0,T10,F5.0,T17,F6.0,TR2,F6.0)
24
      read(in,100) a,i,j,k,b,c,d,e
25
      if ( abs(a-1.5).gt.1.0e-5 )     call abort()
26
      if ( i.ne.1 )                   call abort()
27
      if ( j.ne.5 )                   call abort()
28
      if ( k.ne.348 )                 call abort()
29
      if ( abs(b-0.75).gt.1.0e-5 )    call abort()
30
      if ( abs(c-12.62).gt.1.0e-5 )   call abort()
31
      if ( abs(d-348.75).gt.1.0e-4 )  call abort()
32
      if ( abs(e-1.0e-6).gt.1.0e-11 ) call abort()
33
      end

powered by: WebSVN 2.1.0

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