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.fortran-torture/] [execute/] [data_2.f90] - Blame information for rev 325

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

Line No. Rev Author Line
1 303 jeremybenn
! Check more array variants of the data statement
2
program data_2
3
  implicit none
4
  type t
5
    integer i
6
  end type t
7
  integer, dimension(3) :: a
8
  type (t), dimension(3) :: b
9
  integer, dimension(2,2) :: c
10
  data a(:), b%i /1, 2, 3, 4, 5, 6/
11
  data c(1, :), c(2, :) /7, 8, 9, 10/
12
 
13
  if (any (a .ne. (/1, 2, 3/))) call abort ()
14
  if (any (b%i .ne. (/4, 5, 6/))) call abort ()
15
  if ((any (c(1, :) .ne. (/7, 8/))) &
16
      .or. (any (c(2,:) .ne. (/9, 10/)))) call abort ()
17
end program

powered by: WebSVN 2.1.0

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