1 |
689 |
jeremybenn |
/* { dg-do compile } */
|
2 |
|
|
/* { dg-require-alias "" } */
|
3 |
|
|
/* { dg-require-visibility "" } */
|
4 |
|
|
|
5 |
|
|
#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
|
6 |
|
|
#define ASMNAME2(prefix, cname) STRING (prefix) cname
|
7 |
|
|
#define STRING(x) #x
|
8 |
|
|
|
9 |
|
|
extern void syslog (int __pri, __const char *__fmt, ...)
|
10 |
|
|
__attribute__ ((__format__ (__printf__, 2, 3)));
|
11 |
|
|
extern void vsyslog (int __pri, __const char *__fmt, int __ap)
|
12 |
|
|
__attribute__ ((__format__ (__printf__, 2, 0)));
|
13 |
|
|
void
|
14 |
|
|
__vsyslog(int pri, const char *fmt, int ap)
|
15 |
|
|
{
|
16 |
|
|
}
|
17 |
|
|
void
|
18 |
|
|
__syslog_chk(int pri, int flag, const char *fmt, ...)
|
19 |
|
|
{
|
20 |
|
|
}
|
21 |
|
|
void
|
22 |
|
|
__vsyslog_chk(int pri, int flag, const char *fmt, int ap)
|
23 |
|
|
{
|
24 |
|
|
}
|
25 |
|
|
extern __typeof (__vsyslog_chk) __EI___vsyslog_chk __asm__("" ASMNAME ("__vsyslog_chk")); extern __typeof (__vsyslog_chk) __EI___vsyslog_chk __attribute__((alias ("" "__GI___vsyslog_chk")));
|
26 |
|
|
void
|
27 |
|
|
__syslog(int pri, const char *fmt, ...)
|
28 |
|
|
{
|
29 |
|
|
}
|
30 |
|
|
extern __typeof (__syslog) syslog __attribute__ ((alias ("__syslog")));
|
31 |
|
|
extern __typeof (syslog) __EI_syslog __asm__("" ASMNAME ("syslog")); extern __typeof (syslog) __EI_syslog __attribute__((alias ("" "__GI_syslog")));
|
32 |
|
|
extern __typeof (__vsyslog) vsyslog __attribute__ ((alias ("__vsyslog")));
|
33 |
|
|
extern __typeof (vsyslog) __EI_vsyslog __asm__("" ASMNAME ("vsyslog")); extern __typeof (vsyslog) __EI_vsyslog __attribute__((alias ("" "__GI_vsyslog")));
|
34 |
|
|
extern __typeof (syslog) syslog __asm__ ("" ASMNAME ("__GI_syslog")) __attribute__ ((visibility ("hidden")));
|
35 |
|
|
extern __typeof (vsyslog) vsyslog __asm__ ("" ASMNAME ("__GI_vsyslog")) __attribute__ ((visibility ("hidden")));
|
36 |
|
|
extern __typeof (__vsyslog_chk) __vsyslog_chk __asm__ ("" ASMNAME ("__GI___vsyslog_chk")) __attribute__ ((visibility ("hidden")));
|