浏览代码

+ test for double usage of units

Jonas Maebe 22 年之前
父节点
当前提交
f35267db01
共有 3 个文件被更改,包括 24 次插入0 次删除
  1. 4 0
      tests/tbf/tb0158.pp
  2. 13 0
      tests/tbf/ub0158a.pp
  3. 7 0
      tests/tbf/ub0158b.pp

+ 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.