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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-std=gnu" } ! suppress the warning about line 15
3
! Thrashes the fix for PR29400, where the scalar initializers
4
! were not expanded to arrays with the appropriate shape.
5
!
6
! Contributed by Francois-Xavier Coudert 
7
!
8
  integer,parameter :: i(1,1) = 0, j(2) = 42
9
 
10
  if (any (maxloc(j+j,mask=(j==2)) .ne. 0)) call abort ()
11
  if (size(j+j) .ne. 2) call abort ()
12
  if (minval(j+j) .ne. 84) call abort ()
13
  if (minval(j,mask=(j==2)) .ne. huge (j)) call abort ()
14
  if (maxval(j+j) .ne. 84) call abort ()
15
  if (maxval(j,mask=(j==2)) .ne. -huge (j)-1) call abort ()
16
  if (sum(j,mask=j==2) .ne. 0) call abort ()
17
  if (sum(j+j) .ne. 168) call abort ()
18
  if (product(j+j) .ne. 7056) call abort ()
19
  if (any(ubound(j+j) .ne. 2)) call abort ()
20
  if (any(lbound(j+j) .ne. 1)) call abort ()
21
  if (dot_product(j+j,j) .ne. 7056) call abort ()
22
  if (dot_product(j,j+j) .ne. 7056) call abort ()
23
  if (count(i==1) .ne. 0) call abort ()
24
  if (any(i==1)) call abort ()
25
  if (all(i==1)) call abort ()
26
  end

powered by: WebSVN 2.1.0

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