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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [maxloc_shape_1.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do compile }
! Tests the implementation of compile-time shape testing, required to fix
! PR19015.  The functionality of maxloc and friends is tested by existing
! testcases.
!
! Contributed by Thomas Koeing  <Thomas.Koenig@online.de>
!
  integer, dimension(0:1,0:1) :: n
  integer, dimension(1) :: i
  n = reshape((/1, 2, 3, 4/), shape(n))
  i = maxloc(n) ! { dg-error "different shape for Array assignment" }
  i = maxloc(n,dim=1) ! { dg-error "different shape for Array assignment" }
!  print *,i
end program

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.