1! { dg-do run } 2! { dg-options -fbackslash } 3! Wide chracter I/O test 4, formatted ISO-8859-1 characters in string 4! Test case developed by Jerry DeLisle <jvdelisle@gcc.gnu.org> 5! Compile with -fbackslash 6integer, parameter :: k4 = 4 7character(kind=1,len=15) :: buffer 8character(kind=1, len=1) :: c1, c2 9character(kind=4,len=20) :: str = k4_'X\xF8��ABC' ! ISO-8859-1 encoded string 10buffer = "" 11write(buffer,'(3a)')':',trim(str),':' 12if (buffer.ne.':X\xF8��ABC: ') call abort 13str = "" 14read(buffer,'(3a)') c1,str(1:6),c2 15if (c1.ne.':') call abort 16if (str.ne.k4_'X\xF8��AB') call abort 17if (c2.ne.'C') call abort 18end 19