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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

! { dg-do compile }
! we didn't look at the right symbol when genrating code. This broke
! when array valued functions came into play.
module module_vec3d
  INTERFACE cross_product
     MODULE PROCEDURE cross_product3_R4_R8
  END INTERFACE
CONTAINS
  FUNCTION cross_product3_R4_R8 ()
    real(8) :: cross_product3_r4_r8(3)
    cross_product3_r4_r8 = 0
  END FUNCTION cross_product3_R4_R8
END MODULE module_vec3d

PROGRAM TEST
  use module_vec3d, only: cross_product
  real(8) :: c(3)
  c = cross_product()
END PROGRAM TEST

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

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.