IRA: Ignore debug insns for uses in split_live_ranges_for_shrink_wrap. [PR116179]
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / attr-alloc_size-2.c
blob47f0ba44d0055845baf0daca1449d66fa702cb4c
1 typedef signed long idx_t;
3 void *xirealloc (void *p, idx_t s)
4 __attribute__ ((__alloc_size__ (2))) __attribute__ ((__returns_nonnull__));
6 char *
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)));
15 void *
16 test_cast_2 (signed char a, signed char b)
18 return alloc_cast_2 (a + 1, b + 1);