URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [array_constructor_10.f90] - Rev 694
Compare with Previous | Blame | View Log
! Like array_constructor_6.f90, but check constructors that apply! an elemental function to an array.! { dg-do run }program mainimplicit nonecall build (200)containssubroutine build (order)integer :: order, icall test (order, (/ (abs ((/ i, -i, -i * 2 /)), i = 1, order) /))call test (order, abs ((/ ((/ -i, -i, i * 2 /), i = 1, order) /)))call test (order, (/ abs ((/ ((/ i, i, -i * 2 /), i = 1, order) /)) /))end subroutine buildsubroutine test (order, values)integer, dimension (3:) :: valuesinteger :: order, iif (size (values, dim = 1) .ne. order * 3) call abortdo i = 1, orderif (values (i * 3) .ne. i) call abortif (values (i * 3 + 1) .ne. i) call abortif (values (i * 3 + 2) .ne. i * 2) call abortend doend subroutine testend program main
