Browse Source

+ added test for setting string funciton result in nested procedure
(fails under 1.1 currently)

Jonas Maebe 23 years ago
parent
commit
656c0a3b6b
1 changed files with 19 additions and 0 deletions
  1. 19 0
      tests/tbs/tb0416.pp

+ 19 - 0
tests/tbs/tb0416.pp

@@ -0,0 +1,19 @@
+function f: string;
+
+  procedure t;
+    begin
+      f := 'test';
+    end;
+
+begin
+  t;
+end;
+
+
+begin
+  if f <> 'test' then
+    begin
+      writeln('error!');
+      halt(1);
+    end;
+end.