Browse Source

* some tests for identifier reusing

peter 25 years ago
parent
commit
e1a81165ac
4 changed files with 24 additions and 0 deletions
  1. 5 0
      tests/tbf/tbf0342.pp
  2. 8 0
      tests/tbf/tbf0343.pp
  3. 5 0
      tests/tbf/tbf0345.pp
  4. 6 0
      tests/tbs/tbs0344.pp

+ 5 - 0
tests/tbf/tbf0342.pp

@@ -0,0 +1,5 @@
+type
+  WORD=word;
+
+begin
+end.

+ 8 - 0
tests/tbf/tbf0343.pp

@@ -0,0 +1,8 @@
+type
+  TListEntry = record
+    Next: ^TListEntry;                      (*<-- Error message here*)
+    Data: Integer;
+  end;
+
+begin
+end.

+ 5 - 0
tests/tbf/tbf0345.pp

@@ -0,0 +1,5 @@
+var
+  WORD : array[1..2] of word;
+
+begin
+end.

+ 6 - 0
tests/tbs/tbs0344.pp

@@ -0,0 +1,6 @@
+var
+  r : record
+        word : array[1..2] of word;
+      end;
+begin
+end.