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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [min_max_optional_1.f90] - Blame information for rev 312

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
IF (T1(1.0,1.0) .NE. (1.0,1.0) ) CALL ABORT()
3
IF (T1(1.0) .NE. (1.0,0.0)) CALL ABORT()
4
IF (M1(1,2,3) .NE. 3) CALL ABORT()
5
IF (M1(1,2,A4=4) .NE. 4) CALL ABORT()
6
CONTAINS
7
 
8
COMPLEX FUNCTION T1(X,Y)
9
  REAL :: X
10
  REAL, OPTIONAL :: Y
11
  T1=CMPLX(X,Y)
12
END FUNCTION T1
13
 
14
INTEGER FUNCTION M1(A1,A2,A3,A4)
15
  INTEGER :: A1,A2
16
  INTEGER, OPTIONAL :: A3,A4
17
  M1=MAX(A1,A2,A3,A4)
18
END FUNCTION M1
19
 
20
END

powered by: WebSVN 2.1.0

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