2
0
Эх сурвалжийг харах

+ test for double usage of units

Jonas Maebe 22 жил өмнө
parent
commit
f35267db01

+ 4 - 0
tests/tbf/tb0158.pp

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

+ 13 - 0
tests/tbf/ub0158a.pp

@@ -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 - 0
tests/tbf/ub0158b.pp

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