URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [backslash_3.f] - Rev 384
Compare with Previous | Blame | View Log
C { dg-do run { target fd_truncate } } C { dg-options "-fbackslash" } C PR fortran/30278 program a character(len=1), parameter :: c1 = char(8), c2 = char(92) character(len=35) str1, str2 character(len=37) :: str4, str3 open(10, status='scratch') write(10, 100) rewind(10) read(10,'(A34)') str1 str2 = 'Does ' // c1 // 'ackslash result in ' // c1 // 'ackslash' if (str1 .ne. str2) call abort rewind(10) write (10, 200) rewind(10) read(10,'(A37)') str3 str4 = 'Does ' //c2// 'backslash result in ' //c2// 'backslash' if (str3 .ne. str4) call abort stop 100 format ('Does \backslash result in \backslash') 200 format ('Does \\backslash result in \\backslash') end