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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR46842 wrong results with MATMUL(..., TRANSPOSE (func ()))
3
implicit none
4
call sub()
5
contains
6
   subroutine sub()
7
      real, dimension(2,2) :: b
8
      b = 1.0
9
      b = matmul(b,transpose(func()))
10
      if (any(b.ne.reshape((/ 4.0, 4.0, 6.0, 6.0 /),[2,2]) )) print *, b
11
   end subroutine
12
 
13
   function func() result(res)
14
      real, dimension(2,2) :: res
15
      res = reshape([1,2,3,4], [2,2])
16
   end function
17
end

powered by: WebSVN 2.1.0

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