Searched refs:calloc_function_pointer (Results 1 – 2 of 2) sorted by relevance
/llvm-project/clang/test/CodeGen/ |
H A D | alloc-size.c | 371 void *(*calloc_function_pointer)(int, int)__attribute__((alloc_size(1, 2))); variable 385 void *const arr = calloc_function_pointer(100, 5); in test_fn_pointer() 405 gi = __builtin_object_size(calloc_function_pointer(100, 5), 0); in test_fn_pointer() 407 gi = __builtin_object_size(calloc_function_pointer(100, 5), 1); in test_fn_pointer() 409 gi = __builtin_object_size(calloc_function_pointer(100, 5), 2); in test_fn_pointer() 411 gi = __builtin_object_size(calloc_function_pointer(100, 5), 3); in test_fn_pointer() 419 void *const zeroArr1 = calloc_function_pointer(0, 1); in test_fn_pointer() 420 void *const zeroArr2 = calloc_function_pointer(1, 0); in test_fn_pointer() 426 gi = __builtin_object_size(calloc_function_pointer(1, 0), 0); in test_fn_pointer() 428 gi = __builtin_object_size(calloc_function_pointer(0, 1), 0); in test_fn_pointer()
|
H A D | alloc-size-fnptr.c | 23 extern void *(*calloc_function_pointer)(void *, int, int)__attribute__((alloc_size(2, 3))); 30 calloc_function_pointer(NULL, 2, 4); in call_function_pointer()
|