gcc/testsuite/gcc.dg/analyzer/malloc-ipa-8-lto-b.c
raw| 1 | #include <stdlib.h> |
| 2 | #include "malloc-ipa-8-lto.h" |
| 3 | |
| 4 | boxed_int * |
| 5 | make_boxed_int (int i) |
| 6 | { |
| 7 | boxed_int *result = (boxed_int *)wrapped_malloc (sizeof (boxed_int)); |
| 8 | if (!result) |
| 9 | abort (); |
| 10 | result->i = i; |
| 11 | return result; |
| 12 | } |
| 13 | |
| 14 | void |
| 15 | free_boxed_int (boxed_int *bi) |
| 16 | { |
| 17 | wrapped_free (bi); |
| 18 | } |