소스 검색

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