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. */
9 /* { dg-options "-ansi" } */
11 typedef __SIZE_TYPE__
size_t;
13 extern void abort (void);
14 extern void *malloc (size_t);
15 extern void *calloc (size_t,size_t);
17 extern void link_error (void);
26 ptr2
= (int*) malloc (sizeof (int));
40 ptr2
= (int*) calloc (1, sizeof (int));
57 void link_error (void)