// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
  for(;;)
  {
      char *p = new(nothrow) char[10000000];
      if(p == NULL)
      {
          cerr << "Oops" << endl;
          return 1;
      }
  }
  return 0;
}
