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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [spread_init_expr.f03] - Blame information for rev 310

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do "run" }
2
 
3
  INTEGER, PARAMETER :: n = 5
4
  INTEGER, PARAMETER :: a1(n) = SPREAD(1, 1, n)
5
  INTEGER, PARAMETER :: a2(n, 3) = SPREAD([1,2,3], DIM=1, NCOPIES=n)
6
  INTEGER, PARAMETER :: a3(3, n) = SPREAD([1,2,3], DIM=2, NCOPIES=n)
7
 
8
  IF (ANY(a1 /= [ 1, 1, 1, 1, 1 ])) CALL abort()
9
 
10
  IF (ANY(a2(:, 1) /= 1)) CALL abort()
11
  IF (ANY(a2(:, 2) /= 2)) CALL abort()
12
  IF (ANY(a2(:, 3) /= 3)) CALL abort()
13
 
14
  IF (ANY(a3(1, :) /= 1)) CALL abort()
15
  IF (ANY(a3(2, :) /= 2)) CALL abort()
16
  IF (ANY(a3(3, :) /= 3)) CALL abort()
17
END

powered by: WebSVN 2.1.0

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