111
|
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
|
|
9 static inline __attribute__((always_inline)) void __check_printsym_format(const
|
|
10 char *fmt, ...)
|
|
11 {
|
|
12 }
|
|
13 static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
|
|
14 my_intptr_t addr)
|
|
15 {
|
|
16 __check_printsym_format(fmt, "");
|
|
17 }
|
|
18 void do_initcalls(void **call)
|
|
19 {
|
|
20 print_symbol(": %s()", (my_intptr_t) *call);
|
|
21 }
|