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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
program valueTests
3
  integer :: myInt
4
  interface
5
     subroutine mySub(myInt)
6
       integer, value :: myInt
7
     end subroutine mySub
8
  end interface
9
 
10
  myInt = 10
11
 
12
  call mySub(myInt)
13
  ! myInt should be unchanged since pass-by-value
14
  if(myInt .ne. 10) then
15
     call abort ()
16
  endif
17
end program valueTests
18
 
19
subroutine mySub(myInt)
20
  integer, value :: myInt
21
  myInt = 11
22
end subroutine mySub
23
 

powered by: WebSVN 2.1.0

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