OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [inline-23.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.