URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
! { dg-do run }
|
! { dg-do run }
|
! PR24268 Test case derived from example given by Iwan Kawrakow
|
! PR24268 Test case derived from example given by Iwan Kawrakow
|
! Embedded spaces in format strings should be ignored.
|
! Embedded spaces in format strings should be ignored.
|
! Prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
! Prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
program pr24268
|
program pr24268
|
real x
|
real x
|
character*13 line
|
character*13 line
|
line = "12.34"
|
line = "12.34"
|
read(line,*) x
|
read(line,*) x
|
write(line,10) x
|
write(line,10) x
|
10 format(g1
|
10 format(g1
|
* 1.4)
|
* 1.4)
|
if (line.ne." 12.34") call abort()
|
if (line.ne." 12.34") call abort()
|
line = ""
|
line = ""
|
write(line,20) x
|
write(line,20) x
|
20 format(t r 2 , g 1 1 . 4)
|
20 format(t r 2 , g 1 1 . 4)
|
if (line.ne." 12.34") call abort()
|
if (line.ne." 12.34") call abort()
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.