2 ! Checks Fortran 2003's new_line intrinsic function
6 character(len
=10) :: a1
7 character(len
=10) :: a2(2)
8 character(len
=10), parameter :: a3
= "1234567890"
9 character(len
=10), parameter :: a4(2) = "1234567890"
10 character(len
=10), parameter :: a5(2) = repeat("1234567890",2)
12 if(achar(10) /= new_line('a')) STOP 1
14 if (iachar(new_line(a1
)) /= 10) STOP 2
15 if (iachar(new_line(a2
)) /= 10) STOP 3
16 if (iachar(new_line(a3
)) /= 10) STOP 4
17 if (iachar(new_line(a4
)) /= 10) STOP 5
18 if (iachar(new_line(a5
)) /= 10) STOP 6
20 end program new_line_check