3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 8 Dec 2004 <nathan@codesourcery.com>
6 // PR 16681 too much memory used
7 // Origin: Matt LaFary <lafary@activmedia.com>
10 unsigned char buffer[4111222];
19 bool foo::check () const
21 for (unsigned ix = sizeof (buffer); ix--;)
27 void *operator new (__SIZE_TYPE__ size, void *p)
36 for (unsigned ix = sizeof (heap); ix--;)
39 foo *f = new (heap) foo ();