URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
! { dg-do run }
|
! { dg-do run }
|
! PR31051 bug with x and t format descriptors.
|
! PR31051 bug with x and t format descriptors.
|
! Test case prepared by Jerry DeLisle from PR.
|
! Test case prepared by Jerry DeLisle from PR.
|
program t
|
program t
|
integer, parameter :: n = 9
|
integer, parameter :: n = 9
|
character(len=40) :: fmt
|
character(len=40) :: fmt
|
character(len=2), dimension(n) :: y
|
character(len=2), dimension(n) :: y
|
open(unit=10, status="scratch")
|
open(unit=10, status="scratch")
|
y = 'a '
|
y = 'a '
|
fmt = '(a,1x,(t7, 3a))'
|
fmt = '(a,1x,(t7, 3a))'
|
write(10, fmt) 'xxxx', (y(i), i = 1,n)
|
write(10, fmt) 'xxxx', (y(i), i = 1,n)
|
rewind(10)
|
rewind(10)
|
read(10, '(a)') fmt
|
read(10, '(a)') fmt
|
if (fmt.ne."xxxx a a a") call abort()
|
if (fmt.ne."xxxx a a a") call abort()
|
end program t
|
end program t
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.