URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [backslash_3.f] - Rev 154
Compare with Previous | Blame | View Log
C { dg-do run } 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