1 typedef signed long idx_t
;
3 void *xirealloc (void *p
, idx_t s
)
4 __attribute__ ((__alloc_size__ (2))) __attribute__ ((__returns_nonnull__
));
7 test_cast_1 (char *buf
, idx_t buf_count
)
9 return (char *) xirealloc (buf
, buf_count
+ 1);
12 void *alloc_cast_2 (signed char x
, signed char y
)
13 __attribute__ ((__alloc_size__ (1, 2)));
16 test_cast_2 (signed char a
, signed char b
)
18 return alloc_cast_2 (a
+ 1, b
+ 1);