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-i-out.f] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
C Test Fortran 77 I edit descriptor for output
2
C      (ANSI X3.9-1978 Section 13.5.9.1)
3
C
4
C Origin: David Billinghurst <David.Billinghurst@riotinto.com>
5
C
6
C { dg-do run }
7
C { dg-output "^" }
8
 
9
      write(*,'(I1)')    1  ! { dg-output "1(\n|\r\n|\r)" }
10
      write(*,'(I1)')   -1  ! { dg-output "\\*(\n|\r\n|\r)" }
11
      write(*,'(I2)')    2  ! { dg-output " 2(\n|\r\n|\r)" }
12
      write(*,'(I2)')   -2  ! { dg-output "-2(\n|\r\n|\r)" }
13
      write(*,'(I3)')    3  ! { dg-output "  3(\n|\r\n|\r)" }
14
      write(*,'(I3)')   -3  ! { dg-output " -3(\n|\r\n|\r)" }
15
 
16
      write(*,'(I2.0)')  0  ! { dg-output "  (\n|\r\n|\r)" }
17
      write(*,'(I1.1)')  4  ! { dg-output "4(\n|\r\n|\r)" }
18
      write(*,'(I1.1)') -4  ! { dg-output "\\*(\n|\r\n|\r)" }
19
      write(*,'(I2.1)')  5  ! { dg-output " 5(\n|\r\n|\r)" }
20
      write(*,'(I2.1)') -5  ! { dg-output "-5(\n|\r\n|\r)" }
21
      write(*,'(I2.2)')  6  ! { dg-output "06(\n|\r\n|\r)" }
22
      write(*,'(I2.2)') -6  ! { dg-output "\\*\\*(\n|\r\n|\r)" }
23
      write(*,'(I3.2)')  7  ! { dg-output " 07(\n|\r\n|\r)" }
24
      write(*,'(I3.2)') -7  ! { dg-output "-07(\n|\r\n|\r)" }
25
 
26
      end

powered by: WebSVN 2.1.0

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