blob: ddfa0091d86c4c5a8e3d4990c5af642d1abeb0d7 [file] [log] [blame]
/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
#include <stdlib.h>
void *f (void)
{
void *p = malloc (8);
if (p == NULL)
abort ();
return (void *) ((char *) p + 0);
}
void *g (void)
{
void *p = malloc (8);
if (p == NULL)
abort ();
return (void *) ((char *) p + 1);
}