1 /* Copyright (C) 2003 Free Software Foundation.
3 Verify that all the malloc-like __builtin_ allocation functions are
4 recognized by the compiler.
6 Written by Roger Sayle, 12th April 2003. */
8 /* { dg-do compile } */
9 /* { dg-options "-ansi" } */
10 /* { dg-final { scan-assembler-not "__builtin_" } } */
12 typedef __SIZE_TYPE__
size_t;
16 return __builtin_malloc(n
);
19 void *test2(size_t n
, size_t s
)
21 return __builtin_calloc(n
,s
);
24 char *test3(const char *ptr
)
26 return __builtin_strdup(ptr
);