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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_2.f90] - Rev 749

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

! { dg-do compile }
! { dg-options "-c -Wall" }
!
! PR fortran/40041
! cf. also PR fortran/20373

subroutine valid_one
  REAL :: a
  INTEGER :: n
  INTRINSIC   ABS, MAX
  a(n) = MAX(ABS(2),ABS(3),n)
end subroutine

subroutine valid_two
  IMPLICIT NONE
  REAL :: a
  INTEGER :: n
  INTRINSIC   ABS, MAX
  a(n) = MAX(ABS(2),ABS(3),n)
end subroutine

subroutine warnings_one
  REAL :: a
  INTEGER :: n
  REAL :: ABS ! { dg-warning "Type specified for intrinsic function" }
  REAL :: MAX ! { dg-warning "Type specified for intrinsic function" }
  INTRINSIC   ABS, MAX
  a(n) = MAX(ABS(2),ABS(3),n)
end subroutine

subroutine warnings_two
  IMPLICIT NONE
  REAL :: a
  INTEGER :: n
  INTRINSIC ABS ! { dg-warning "Type specified for intrinsic function" }
  INTRINSIC MAX ! { dg-warning "Type specified for intrinsic function" }
  REAL :: ABS
  REAL :: MAX
  a(n) = MAX(ABS(2),ABS(3),n)
end subroutine

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

powered by: WebSVN 2.1.0

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