URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 303 |
Rev 338 |
! Program to test passing intrinsic functions as actual arguments for
|
! Program to test passing intrinsic functions as actual arguments for
|
! dummy procedures.
|
! dummy procedures.
|
subroutine test (proc)
|
subroutine test (proc)
|
implicit none
|
implicit none
|
real proc
|
real proc
|
real a, b, c
|
real a, b, c
|
|
|
a = 1.0
|
a = 1.0
|
b = sin (a)
|
b = sin (a)
|
c = proc (a)
|
c = proc (a)
|
|
|
if (abs (b - c) .gt. 0.001) call abort
|
if (abs (b - c) .gt. 0.001) call abort
|
|
|
end subroutine
|
end subroutine
|
|
|
program dummy
|
program dummy
|
implicit none
|
implicit none
|
external test
|
external test
|
intrinsic sin
|
intrinsic sin
|
|
|
call test (sin)
|
call test (sin)
|
end program
|
end program
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.