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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! we didn't look at the right symbol when genrating code. This broke
3
! when array valued functions came into play.
4
module module_vec3d
5
  INTERFACE cross_product
6
     MODULE PROCEDURE cross_product3_R4_R8
7
  END INTERFACE
8
CONTAINS
9
  FUNCTION cross_product3_R4_R8 ()
10
    real(8) :: cross_product3_r4_r8(3)
11
    cross_product3_r4_r8 = 0
12
  END FUNCTION cross_product3_R4_R8
13
END MODULE module_vec3d
14
 
15
PROGRAM TEST
16
  use module_vec3d, only: cross_product
17
  real(8) :: c(3)
18
  c = cross_product()
19
END PROGRAM TEST
20
 
21
! { dg-final { cleanup-modules "module_vec3d" } }

powered by: WebSVN 2.1.0

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