| 1 |
(* Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. *) |
| 2 |
(* This file is part of GNU Modula-2. |
| 3 |
|
| 4 |
GNU Modula-2 is free software; you can redistribute it and/or modify it under |
| 5 |
the terms of the GNU General Public License as published by the Free |
| 6 |
Software Foundation; either version 2, or (at your option) any later |
| 7 |
version. |
| 8 |
|
| 9 |
GNU Modula-2 is distributed in the hope that it will be useful, but WITHOUT ANY |
| 10 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 12 |
for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License along |
| 15 |
with gm2; see the file COPYING. If not, write to the Free Software |
| 16 |
Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *) |
| 17 |
|
| 18 |
MODULE procmod8 ; |
| 19 |
|
| 20 |
VAR |
| 21 |
x: INTEGER ; |
| 22 |
|
| 23 |
PROCEDURE aaa ; |
| 24 |
MODULE yyy ; |
| 25 |
IMPORT x ; |
| 26 |
PROCEDURE zzz ; |
| 27 |
BEGIN |
| 28 |
x := 111 |
| 29 |
END zzz ; |
| 30 |
END yyy ; |
| 31 |
|
| 32 |
MODULE qqq ; |
| 33 |
IMPORT x ; |
| 34 |
PROCEDURE rrr ; |
| 35 |
|
| 36 |
PROCEDURE ttt ; |
| 37 |
BEGIN |
| 38 |
x := 222 |
| 39 |
END ttt ; |
| 40 |
|
| 41 |
BEGIN |
| 42 |
x := 333 |
| 43 |
END rrr ; |
| 44 |
END qqq ; |
| 45 |
|
| 46 |
BEGIN |
| 47 |
END aaa ; |
| 48 |
|
| 49 |
|
| 50 |
PROCEDURE bbb ; |
| 51 |
MODULE ccc ; |
| 52 |
IMPORT x ; |
| 53 |
PROCEDURE ddd ; |
| 54 |
BEGIN |
| 55 |
x := 444 |
| 56 |
END ddd ; |
| 57 |
END ccc ; |
| 58 |
BEGIN |
| 59 |
END bbb ; |
| 60 |
|
| 61 |
|
| 62 |
BEGIN |
| 63 |
END procmod8. |