3 // Copyright (C) 2006 Free Software Foundation, Inc.
5 // Originally from PR 16681, found also in init/array15.C
6 // This variant of the testcase verifies that we do not create
7 // a temporary on the stack, which is PR 27620.
12 void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n)
14 char *d = (char *) dest;
15 const char *s = (const char *) src;
23 unsigned char buffer[41112];
32 bool foo::check () const
34 for (unsigned ix = sizeof (buffer); ix--;)
40 void *operator new (__SIZE_TYPE__ size, void *p)
49 for (unsigned ix = sizeof (heap); ix--;)
53 foo *f = new (heap) foo ();