PR debug/48204
[official-gcc.git] / gcc / testsuite / gcc.dg / inline-23.c
blob55bd72a59e66013ba160a58c29d5a035c8c069e6
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 static inline __attribute__((always_inline)) void __check_printsym_format(const
7 char *fmt, ...)
10 static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
11 ptrdiff_t addr)
13 __check_printsym_format(fmt, "");
15 void do_initcalls(void **call)
17 print_symbol(": %s()", (ptrdiff_t) *call);