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.dg/] [assign_func_dtcomp_1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-O0" }!! Test fix for PR18022.!! Contributed by Paul Thomas <pault@gcc.gnu.org>!program assign_func_dtcompimplicit nonetype :: mytypereal :: xreal :: yend type mytypetype (mytype), dimension (4) :: ztype :: thytypereal :: x(4)end type thytypetype (thytype) :: wreal, dimension (4) :: a = (/1.,2.,3.,4./)real, dimension (4) :: b = (/5.,6.,7.,8./)! Test the original problem is fixed.z(:)%x = foo (a)z(:)%y = foo (b)if (any(z%x.ne.a).or.any(z%y.ne.b)) call abort ()! Make sure we did not break anything on the way.w%x(:) = foo (b)a = foo (b)if (any(w%x.ne.b).or.any(a.ne.b)) call abort ()containsfunction foo (v) result (ans)real, dimension (:), intent(in) :: vreal, dimension (size(v)) :: ansans = vend function fooend program assign_func_dtcomp
