libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Walloc-size-3.c
blobb95e04a8d99a537797f224e1de359e49998b6e52
1 /* PR 112347
2 { dg-do compile }
3 { dg-options "-Walloc-size" }
4 * */
6 // Test that various types without size do not crash with -Walloc-size
8 int * mallocx(unsigned long) __attribute__((malloc)) __attribute__((alloc_size(1)));
9 void test_oom(void) { void *a_ = mallocx(1); }
11 void parse_args(char (**child_args_ptr_ptr)[]) {
12 *child_args_ptr_ptr = __builtin_calloc(1, sizeof(char));