OSDN Git Service

Call abort for runtime test, always return 0 from main.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / inline-23.c
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, ...)
8 {
9 }
10 static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
11 ptrdiff_t addr)
12 {
13  __check_printsym_format(fmt, "");
14 }
15 void do_initcalls(void **call)
16 {
17    print_symbol(": %s()", (ptrdiff_t) *call);
18 }