peter
24 years ago
|
@@ -1,5 +1,5 @@
|
|
|
uses
|
|
|
- erroru,tunit2;
|
|
|
+ erroru,uunit1;
|
|
|
|
|
|
begin
|
|
|
if testvar<>1234567 then
|
|
@@ -1,20 +1,17 @@
|
|
|
+{ %RECOMPILE }
|
|
|
unit tunit2;
|
|
|
|
|
|
interface
|
|
|
|
|
|
- var
|
|
|
- testvar : longint;
|
|
|
+ uses
|
|
|
+ uunit2a;
|
|
|
|
|
|
- implementation
|
|
|
+ const
|
|
|
+ l = tpl(10);
|
|
|
|
|
|
- uses
|
|
|
- erroru;
|
|
|
+ type
|
|
|
+ pr = ^tr;
|
|
|
+
|
|
|
+ implementation
|
|
|
|
|
|
-initialization
|
|
|
- testvar:=1234567;
|
|
|
-finalization
|
|
|
- if testvar<>1234567 then
|
|
|
- do_error(1001)
|
|
|
- else
|
|
|
- halt(0);
|
|
|
end.
|
|
@@ -1,11 +1,6 @@
|
|
|
-unit tunit3;
|
|
|
-
|
|
|
- interface
|
|
|
-
|
|
|
- type
|
|
|
- tr = record
|
|
|
- end;
|
|
|
-
|
|
|
- implementation
|
|
|
+{ %RECOMPILE }
|
|
|
+uses
|
|
|
+ uunit3a;
|
|
|
|
|
|
+begin
|
|
|
end.
|
|
@@ -1,13 +0,0 @@
|
|
|
-unit tunit5;
|
|
|
-
|
|
|
- interface
|
|
|
-
|
|
|
- uses
|
|
|
- tunit4;
|
|
|
-
|
|
|
- type
|
|
|
- pr = ^tr;
|
|
|
-
|
|
|
- implementation
|
|
|
-
|
|
|
-end.
|
|
@@ -0,0 +1,20 @@
|
|
|
+unit uunit1;
|
|
|
+
|
|
|
+ interface
|
|
|
+
|
|
|
+ var
|
|
|
+ testvar : longint;
|
|
|
+
|
|
|
+ implementation
|
|
|
+
|
|
|
+ uses
|
|
|
+ erroru;
|
|
|
+
|
|
|
+initialization
|
|
|
+ testvar:=1234567;
|
|
|
+finalization
|
|
|
+ if testvar<>1234567 then
|
|
|
+ do_error(1001)
|
|
|
+ else
|
|
|
+ halt(0);
|
|
|
+end.
|
|
@@ -0,0 +1,14 @@
|
|
|
+unit uunit2a;
|
|
|
+
|
|
|
+ interface
|
|
|
+
|
|
|
+ uses
|
|
|
+ uunit2b;
|
|
|
+
|
|
|
+ type
|
|
|
+ tr = uunit2b.tr;
|
|
|
+ tpl = uunit2b.tpl;
|
|
|
+
|
|
|
+ implementation
|
|
|
+
|
|
|
+end.
|
|
@@ -0,0 +1,13 @@
|
|
|
+unit uunit2b;
|
|
|
+
|
|
|
+ interface
|
|
|
+
|
|
|
+ type
|
|
|
+ tr = record
|
|
|
+ end;
|
|
|
+
|
|
|
+ tpl = ^longint;
|
|
|
+
|
|
|
+ implementation
|
|
|
+
|
|
|
+end.
|
|
@@ -0,0 +1,19 @@
|
|
|
+unit uunit3a;
|
|
|
+
|
|
|
+ interface
|
|
|
+
|
|
|
+ uses
|
|
|
+ uunit3b;
|
|
|
+
|
|
|
+procedure p1(para:tpl);
|
|
|
+
|
|
|
+ implementation
|
|
|
+
|
|
|
+uses
|
|
|
+ uunit3c;
|
|
|
+
|
|
|
+procedure p1(para:tpl);
|
|
|
+begin
|
|
|
+end;
|
|
|
+
|
|
|
+end.
|
|
@@ -1,12 +1,12 @@
|
|
|
-unit tunit4;
|
|
|
+unit uunit3b;
|
|
|
|
|
|
interface
|
|
|
|
|
|
uses
|
|
|
- tunit3;
|
|
|
+ uunit3c;
|
|
|
|
|
|
type
|
|
|
- tr = tunit3.tr;
|
|
|
+ tpl = uunit3c.tpl;
|
|
|
|
|
|
implementation
|
|
|
|
|
@@ -0,0 +1,10 @@
|
|
|
+unit uunit3c;
|
|
|
+
|
|
|
+ interface
|
|
|
+
|
|
|
+ type
|
|
|
+ tpl = ^longint;
|
|
|
+
|
|
|
+ implementation
|
|
|
+
|
|
|
+end.
|