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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [contained2.f90] - Blame information for rev 303

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

Line No. Rev Author Line
1 303 jeremybenn
! Program to check resolution of symbols with the same name
2
program contained2
3
   implicit none
4
   integer var1
5
 
6
   var1 = 42
7
   if (f1() .ne. 1) call abort
8
   call f2()
9
   if (var1 .ne. 42) call abort
10
contains
11
 
12
function f1 ()
13
   implicit none
14
   integer f1
15
   integer var1
16
   integer f2
17
 
18
   var1 = 1
19
   f2 = var1
20
   f1 = f2
21
end function
22
 
23
subroutine f2()
24
   implicit none
25
   if (f1() .ne. 1) call abort
26
end subroutine
27
 
28
end program

powered by: WebSVN 2.1.0

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