1 /* { dg-do compile } */ 2 /* { dg-options "-std=gnu89" } */ 3 /* Make sure we can inline a varargs function whose variable arguments 4 are not used. See PR32493. */ 5 #include <stddef.h> 6 7 typedef __INTPTR_TYPE__ my_intptr_t; 8 __check_printsym_format(const char * fmt,...)9static inline __attribute__((always_inline)) void __check_printsym_format(const 10 char *fmt, ...) 11 { 12 } print_symbol(const char * fmt,my_intptr_t addr)13static inline __attribute__((always_inline)) void print_symbol(const char *fmt, 14 my_intptr_t addr) 15 { 16 __check_printsym_format(fmt, ""); 17 } do_initcalls(void ** call)18void do_initcalls(void **call) 19 { 20 print_symbol(": %s()", (my_intptr_t) *call); 21 } 22