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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [maxloc_shape_1.f90] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests the implementation of compile-time shape testing, required to fix
3
! PR19015.  The functionality of maxloc and friends is tested by existing
4
! testcases.
5
!
6
! Contributed by Thomas Koeing  
7
!
8
  integer, dimension(0:1,0:1) :: n
9
  integer, dimension(1) :: i
10
  n = reshape((/1, 2, 3, 4/), shape(n))
11
  i = maxloc(n) ! { dg-error "different shape for Array assignment" }
12
  i = maxloc(n,dim=1) ! { dg-error "different shape for Array assignment" }
13
!  print *,i
14
end program

powered by: WebSVN 2.1.0

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