1 /* Copyright (C) 2003 Free Software Foundation.
3 Verify that the malloc-like __builtin_ allocation functions are
4 correctly aliased by the compiler.
6 Written by Roger Sayle, 12th April 2003. */
10 typedef __SIZE_TYPE__
size_t;
12 extern void abort (void);
13 extern void *malloc (size_t);
14 extern void *calloc (size_t,size_t);
16 extern void link_error (void);
25 ptr2
= (int*) malloc (sizeof (int));
39 ptr2
= (int*) calloc (1, sizeof (int));
56 void link_error (void)