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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [array_constructor_1.f90] - Diff between revs 154 and 816

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
 
 

powered by: WebSVN 2.1.0

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