Debian Codegraph @

gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90

raw
1 ! pr 15311
2 ! output with 'A' edit descriptor
3 program write_a_1
4 character*25 s
5 ! string = format
6 write(s,'(A11)') "hello world"
7 if (s.ne."hello world") STOP 1
8 ! string < format
9 write(s,'(A2)') "hello world"
10 if (s.ne."he") STOP 2
11 ! string > format
12 write(s,'(A18)') "hello world"
13 if (s.ne." hello world") STOP 3
14 end