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-*-* } } }
4 // { dg-options "-mstructure-size-boundary=8" { target arm-*-* } }
6 // Copyright (C) 2004 Free Software Foundation, Inc.
7 // Contributed by Nathan Sidwell 8 Dec 2004 <nathan@codesourcery.com>
9 // PR 16681 too much memory used
10 // Origin: Matt LaFary <lafary@activmedia.com>
12 // NOTE: This test assumes that 4M instances of struct ELT can fit into
13 // a 5MB array. This isn't true, e.g., with the default
14 // arm-none-elf options.
69 bool foo::check () const
71 for (unsigned ix = sizeof (buffer)/ sizeof (buffer[0]); ix--;)
77 void *operator new (__SIZE_TYPE__ size, void *p)
86 for (unsigned ix = sizeof (heap); ix--;)
91 foo *f = new (heap) foo ();
99 return elt::abort + 3;
102 for (unsigned ix = sizeof (heap); ix--;)
106 foo *f = new (heap) foo ();