Explorar el Código

* outofmemory exception bug

peter hace 24 años
padre
commit
9ac5af24c1
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      tests/tbs/tb0357.pp

+ 12 - 0
tests/tbs/tb0357.pp

@@ -0,0 +1,12 @@
+{$ifdef fpc}{$MODE OBJFPC}{$endif}
+uses sysutils;
+var
+  p:pointer;
+begin
+  try
+    getmem(p, 1000000000);
+  except
+    on eoutofmemory do writeln('out of memory!');
+  end;
+  writeln('program lasts...')
+end.