[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / inline-23.c
blob2829ecbf7e1a2e7ac8dd6593f83110cb1887d4cf
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>
7 typedef __INTPTR_TYPE__ my_intptr_t;
9 static inline __attribute__((always_inline)) void __check_printsym_format(const
10 char *fmt, ...)
13 static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
14 my_intptr_t addr)
16 __check_printsym_format(fmt, "");
18 void do_initcalls(void **call)
20 print_symbol(": %s()", (my_intptr_t) *call);