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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [zero_array_components_1.f90] - Blame information for rev 705

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! Tests the fix for PR31620, in which zeroing the component a for the array,
3
! would zero all the components of the array.
4
!
5
! David Ham 
6
!
7
program test_assign
8
  type my_type
9
     integer :: a
10
     integer :: b
11
  end type my_type
12
  type(my_type), dimension(1) :: mine        ! note that MINE is an array
13
  mine%b=4
14
  mine%a=1
15
  mine%a=0
16
  if (any (mine%b .ne. 4)) call abort ()
17
end program test_assign

powered by: WebSVN 2.1.0

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