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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_shadow_3.f03] - Rev 801

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

! { dg-do compile }
! { dg-options "-Wno-intrinsic-shadow -fall-intrinsics" }

! PR fortran/33141
! Check that the "intrinsic shadow" warnings are not emitted if the warning
! is negated.

MODULE testmod
  IMPLICIT NONE

CONTAINS

  REAL FUNCTION asin (arg) ! { dg-bogus "shadow the intrinsic" }
    IMPLICIT NONE
    REAL :: arg
  END FUNCTION asin

END MODULE testmod

REAL FUNCTION acos (arg) ! { dg-bogus "of an intrinsic" }
  IMPLICIT NONE
  REAL :: arg
END FUNCTION acos

! We do only compile, so no main program needed.

! { dg-final { cleanup-modules "testmod" } }

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.