2 ! Check for correct ordering of character variables with CONVERT
6 integer, parameter :: two_swap = 2**25
8 character(len=2) :: c,d
9 open(20,file="convert.dat",form="unformatted",convert="swap") ! { dg-warning "CONVERT" }
12 open(20,file="convert.dat",form="unformatted",access="stream")
14 if (i .ne. two_swap .or. j .ne. two_swap .or. c .ne. "ab") call abort
16 open(20,file="convert.dat",form="unformatted",convert="swap") ! { dg-warning "CONVERT" }
18 close (20,status="delete")
19 if (d .ne. "ab") call abort