1 C { dg-do run { target fd_truncate } }
2 C { dg-options "-fbackslash" }
5 character(len
=1), parameter :: c1
= char
(8), c2
= char
(92)
6 character(len
=35) str1
, str2
7 character(len
=37) :: str4
, str3
9 open
(10, status
='scratch')
13 str2
= 'Does ' // c1
// 'ackslash result in ' // c1
// 'ackslash'
14 if (str1
.ne
. str2
) call abort
20 str4
= 'Does ' //c2
// 'backslash result in ' //c2
// 'backslash'
21 if (str3
.ne
. str4
) call abort
24 100 format ('Does \backslash result in \backslash')
25 200 format ('Does \\backslash result in \\backslash')