URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [constructor.f90] - Rev 695
Compare with Previous | Blame | View Log
! Program to test array constructorsprogram constructorsinteger, dimension (4) :: ainteger, dimension (3, 2) :: binteger i, j, k, l, m, na = (/1, (i,i=2,4)/)do i = 1, 4if (a(i) .ne. i) call abortend dob = reshape ((/0, 1, 2, 3, 4, 5/), (/3, 2/)) + 1do i=1,3if (b(i, 1) .ne. i) call abortif (b(i, 2) .ne. i + 3) call abortend dok = 1l = 2m = 3n = 4! The remainder assumes constant constructors work ok.a = (/n, m, l, k/)if (any (a .ne. (/4, 3, 2, 1/))) call aborta = (/((/i+10, 42/), i = k, l)/)if (any (a .ne. (/11, 42, 12, 42/))) call aborta = (/(I, I=k,l) , (J, J=m,n)/)if (any (a .ne. (/1, 2, 3, 4/))) call abortend program
