1 C Test Fortran 77 I edit descriptor for output
2 C (ANSI X3.9-1978 Section 13.5.9.1)
4 C Origin: David Billinghurst <David.Billinghurst@riotinto.com>
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)" }
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)" }