Browse Source

+ added implicit unit bug test (compile implprog twice without deleting
ppu files to reproduce)

Jonas Maebe 25 years ago
parent
commit
35c8fab00c
3 changed files with 39 additions and 0 deletions
  1. 16 0
      tests/test/implprog.pp
  2. 13 0
      tests/test/impluni1.pp
  3. 10 0
      tests/test/impluni2.pp

+ 16 - 0
tests/test/implprog.pp

@@ -0,0 +1,16 @@
+uses impluni1;
+
+    Type
+      BEC_Single_Error = record
+         E : integer;
+         M : string [80];
+      end;
+
+    Const
+      BEC_Err_Msgs: array [0..1] of BEC_Single_Error =
+       ((E : impluni1.ICanUseThis;  M : '[1] No Error'),
+        (E : impluni2.ICantUseThis; M : '[10000] A Bug?'));
+
+begin
+end.
+

+ 13 - 0
tests/test/impluni1.pp

@@ -0,0 +1,13 @@
+unit impluni1;
+
+interface
+
+uses impluni2;
+
+const
+  ICanUseThis = 1;
+
+implementation
+
+end.
+

+ 10 - 0
tests/test/impluni2.pp

@@ -0,0 +1,10 @@
+unit impluni2;
+
+interface
+
+const
+  ICantUseThis = 10000;
+
+implementation
+
+end.