OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_dummy.f90] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 jeremybenn
! Program to test passing intrinsic functions as actual arguments for
2
! dummy procedures.
3
subroutine test (proc)
4
   implicit none
5
   real proc
6
   real a, b, c
7
 
8
   a = 1.0
9
   b = sin (a)
10
   c = proc (a)
11
 
12
   if (abs (b - c) .gt. 0.001) call abort
13
 
14
end subroutine
15
 
16
program dummy
17
   implicit none
18
   external test
19
   intrinsic sin
20
 
21
   call test (sin)
22
end program
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.