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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [string.f90] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 jeremybenn
! Program to test string handling
2
program string
3
   implicit none
4
   character(len=5) :: a, b
5
   character(len=20) :: c
6
 
7
   a = 'Hello'
8
   b = 'World'
9
   c = a//b
10
 
11
   if (c .ne. 'HelloWorld') call abort
12
   if (c .eq. 'WorldHello') call abort
13
   if (a//'World' .ne. 'HelloWorld') call abort
14
   if (a .ge. b) call abort
15
end program

powered by: WebSVN 2.1.0

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