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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_trim.f90] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
! Program to test the TRIM and REPEAT intrinsics.
2
program intrinsic_trim
3
  character(len=8) a
4
  character(len=4) b,work
5
  a='1234    '
6
  b=work(9,a)
7
  if (llt(b,"1234")) call abort()
8
  a='     '
9
  b=trim(a)
10
  if (b .gt. "") call abort()
11
  b='12'
12
  a=repeat(b,0)
13
  if (a .gt. "") call abort()
14
  a=repeat(b,2)
15
  if (a .ne. "12  12  ") call abort()
16
end
17
 
18
function work(i,a)
19
  integer i
20
  character(len=i) a
21
  character(len=4) work
22
  work = trim(a)
23
end

powered by: WebSVN 2.1.0

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