URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
! { dg-do run }
|
! { dg-do run }
|
! { dg-options "-O0" }
|
! { dg-options "-O0" }
|
!
|
!
|
! Tests fix for PR21459 - This is the original example.
|
! Tests fix for PR21459 - This is the original example.
|
!
|
!
|
program format_string
|
program format_string
|
implicit none
|
implicit none
|
character(len=*), parameter :: rform='(F15.5)', &
|
character(len=*), parameter :: rform='(F15.5)', &
|
cform="(' (', F15.5, ',' F15.5, ') ')"
|
cform="(' (', F15.5, ',' F15.5, ') ')"
|
call print_a_number(cform)
|
call print_a_number(cform)
|
contains
|
contains
|
subroutine print_a_number(style)
|
subroutine print_a_number(style)
|
character(len=*) :: style
|
character(len=*) :: style
|
write(*, style) cmplx(42.0, 99.0) ! { dg-output "99.00000" }
|
write(*, style) cmplx(42.0, 99.0) ! { dg-output "99.00000" }
|
end subroutine print_a_number
|
end subroutine print_a_number
|
end program format_string
|
end program format_string
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.