Преглед на файлове

* saveregisters also save the one needed for return values

pierre преди 25 години
родител
ревизия
366aece76e
променени са 1 файла, в които са добавени 18 реда и са изтрити 0 реда
  1. 18 0
      tests/test/testsave.pp

+ 18 - 0
tests/test/testsave.pp

@@ -0,0 +1,18 @@
+
+
+function x : longint;saveregisters;
+begin
+  x:=34;
+end;
+
+var
+  y : longint;
+begin
+  asm
+    movl $15,%eax
+  end;
+  y:=x;
+  Writeln(y);
+  if y<>34 then
+    halt(1);
+end.