annotate gcc/testsuite/gcc.dg/inline-23.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-std=gnu89" } */
kono
parents:
diff changeset
3 /* Make sure we can inline a varargs function whose variable arguments
kono
parents:
diff changeset
4 are not used. See PR32493. */
kono
parents:
diff changeset
5 #include <stddef.h>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 typedef __INTPTR_TYPE__ my_intptr_t;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 static inline __attribute__((always_inline)) void __check_printsym_format(const
kono
parents:
diff changeset
10 char *fmt, ...)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 }
kono
parents:
diff changeset
13 static inline __attribute__((always_inline)) void print_symbol(const char *fmt,
kono
parents:
diff changeset
14 my_intptr_t addr)
kono
parents:
diff changeset
15 {
kono
parents:
diff changeset
16 __check_printsym_format(fmt, "");
kono
parents:
diff changeset
17 }
kono
parents:
diff changeset
18 void do_initcalls(void **call)
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 print_symbol(": %s()", (my_intptr_t) *call);
kono
parents:
diff changeset
21 }