URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
! Program to test string handling
|
! Program to test string handling
|
program string
|
program string
|
implicit none
|
implicit none
|
character(len=5) :: a, b
|
character(len=5) :: a, b
|
character(len=20) :: c
|
character(len=20) :: c
|
|
|
a = 'Hello'
|
a = 'Hello'
|
b = 'World'
|
b = 'World'
|
c = a//b
|
c = a//b
|
|
|
if (c .ne. 'HelloWorld') call abort
|
if (c .ne. 'HelloWorld') call abort
|
if (c .eq. 'WorldHello') call abort
|
if (c .eq. 'WorldHello') call abort
|
if (a//'World' .ne. 'HelloWorld') call abort
|
if (a//'World' .ne. 'HelloWorld') call abort
|
if (a .ge. b) call abort
|
if (a .ge. b) call abort
|
end program
|
end program
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.