1 // Causes timeout for the MMIX simulator on a 3GHz P4 and we can't
2 // have "compile" for some targets and "run" for others.
3 // { dg-do run { target { ! mmix-*-* } } }
5 // Copyright (C) 2004 Free Software Foundation, Inc.
6 // Contributed by Nathan Sidwell 8 Dec 2004 <nathan@codesourcery.com>
8 // PR 16681 too much memory used
9 // Origin: Matt LaFary <lafary@activmedia.com>
11 // NOTE: This test assumes that 4M instances of struct ELT can fit into
67 bool foo::check () const
69 for (unsigned ix = sizeof (buffer)/ sizeof (buffer[0]); ix--;)
75 void *operator new (__SIZE_TYPE__ size, void *p)
84 for (unsigned ix = sizeof (heap); ix--;)
89 foo *f = new (heap) foo ();
97 return elt::abort + 3;
100 for (unsigned ix = sizeof (heap); ix--;)
104 foo *f = new (heap) foo ();