URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
! { dg-do run }
|
! { dg-do run }
|
! Check that [...] style array constructors work
|
! Check that [...] style array constructors work
|
program bracket_array_constructor
|
program bracket_array_constructor
|
implicit none
|
implicit none
|
integer :: a(4), i
|
integer :: a(4), i
|
|
|
a = [ 1, 2, 3, 4 ]
|
a = [ 1, 2, 3, 4 ]
|
do i = 1, size(a)
|
do i = 1, size(a)
|
if (a(i) /= i) call abort()
|
if (a(i) /= i) call abort()
|
end do
|
end do
|
|
|
a = [ (/ 1, 2, 3, 4 /) ]
|
a = [ (/ 1, 2, 3, 4 /) ]
|
do i = 1, size(a)
|
do i = 1, size(a)
|
if (a(i) /= i) call abort()
|
if (a(i) /= i) call abort()
|
end do
|
end do
|
|
|
end program bracket_array_constructor
|
end program bracket_array_constructor
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.