+ test for double usage of units

This commit is contained in:
Jonas Maebe 2003-11-22 12:35:12 +00:00
parent 52d3dcf9f9
commit f35267db01
3 changed files with 24 additions and 0 deletions

4
tests/tbf/tb0158.pp Normal file
View File

@ -0,0 +1,4 @@
uses ub0158a;
begin
end.

13
tests/tbf/ub0158a.pp Normal file
View File

@ -0,0 +1,13 @@
unit ub0158a;
interface
uses ub0158b;
implementation
{ should give "duplicate identifier error", because already used in the }
{ interface }
uses ub0158b;
end.

7
tests/tbf/ub0158b.pp Normal file
View File

@ -0,0 +1,7 @@
unit ub0158b;
interface
implementation
end.