OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [logical_dot_product.f90] - Blame information for rev 302

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! Checks the LOGICAL version of dot_product
3
!
4
! Contributed by Paul Thomas  
5
!
6
   logical :: l1(4) = (/.TRUE.,.FALSE.,.TRUE.,.FALSE./)
7
   logical :: l2(4) = (/.FALSE.,.TRUE.,.FALSE.,.TRUE./)
8
   if (dot_product (l1, l2)) call abort ()
9
   l2 = .TRUE.
10
   if (.not.dot_product (l1, l2)) call abort ()
11
end

powered by: WebSVN 2.1.0

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