mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 10:29:17 +02:00
+ test for double usage of units
This commit is contained in:
parent
52d3dcf9f9
commit
f35267db01
4
tests/tbf/tb0158.pp
Normal file
4
tests/tbf/tb0158.pp
Normal file
@ -0,0 +1,4 @@
|
||||
uses ub0158a;
|
||||
|
||||
begin
|
||||
end.
|
13
tests/tbf/ub0158a.pp
Normal file
13
tests/tbf/ub0158a.pp
Normal 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
7
tests/tbf/ub0158b.pp
Normal file
@ -0,0 +1,7 @@
|
||||
unit ub0158b;
|
||||
|
||||
interface
|
||||
|
||||
implementation
|
||||
|
||||
end.
|
Loading…
Reference in New Issue
Block a user