Browse Source

* outofmemory exception bug

peter 24 years ago
parent
commit
9ac5af24c1
1 changed files with 12 additions and 0 deletions
  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.