OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [new_line.f90] - Blame information for rev 308

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! Checks Fortran 2003's new_line intrinsic function
3
! PR fortran/28585
4
program new_line_check
5
  implicit none
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)
11
 
12
  if(achar(10) /= new_line('a')) call abort
13
 
14
  if (iachar(new_line(a1)) /= 10) call abort
15
  if (iachar(new_line(a2)) /= 10) call abort
16
  if (iachar(new_line(a3)) /= 10) call abort
17
  if (iachar(new_line(a4)) /= 10) call abort
18
  if (iachar(new_line(a5)) /= 10) call abort
19
 
20
end program new_line_check

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.