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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [f2c_2.f90] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! Some basic testing that calls to the library still work correctly with
2
! -ff2c
3
!
4
! Once the library has support for f2c calling conventions (i.e. passing
5
! a REAL(kind=4) or COMPLEX-valued intrinsic as procedure argument works), we
6
! can simply add -ff2c to the list of options to cycle through, and get
7
! complete coverage.  As of 2005-03-05 this doesn't work.
8
! { dg-do run }
9
! { dg-options "-ff2c" }
10
 
11
complex c
12
double complex d
13
 
14
x = 2.
15
if ((sqrt(x) - 1.41)**2 > 1.e-4) call abort ()
16
x = 1.
17
if ((atan(x) - 3.14/4) ** 2 > 1.e-4) call abort ()
18
c = (-1.,0.)
19
if (sqrt(c) /= (0., 1.)) call abort ()
20
d = c
21
if (sqrt(d) /= (0._8, 1._8)) call abort ()
22
end
23
 

powered by: WebSVN 2.1.0

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