Ver código fonte

* outofmemory exception bug

peter 24 anos atrás
pai
commit
9ac5af24c1
1 arquivos alterados com 12 adições e 0 exclusões
  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.