2 ! PR 21875 : Test formatted input/output to/from character arrays.
3 ! This test ckecks proper positioning and padding with trailing blanks
4 ! after write operations. Contributed by Paul Thomas.
8 character(len=12), dimension(4,2) :: r = "0123456789ab"
11 f = '("hello"/"world")'
15 f = '("hello",t1,"HELLO",1x,"!"/"world",tl12,"WORLD")'
17 write(r((i-1):(i+1),i), f)
19 if ( r(1,1).ne.'hello ' .or. &
20 r(2,1).ne.'world ' .or. &
21 r(3,1).ne.'0123456789ab' .or. &
22 r(4,1).ne.'0123456789ab' .or. &
23 r(1,2).ne.'HELLO ! ' .or. &
24 r(2,2).ne.'WORLD ' .or. &
25 r(3,2).ne.'0123456789ab' .or. &
26 r(4,2).ne.'0123456789ab') call abort()