PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr47276.c
blobfb0c12549f0a07991ea072592449afd78c86f208
1 /* { dg-do compile } */
2 /* { dg-require-alias "" } */
3 /* { dg-require-visibility "" } */
4 /* { dg-add-options bind_pic_locally } */
6 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
7 #define ASMNAME2(prefix, cname) STRING (prefix) cname
8 #define STRING(x) #x
10 extern void syslog (int __pri, __const char *__fmt, ...)
11 __attribute__ ((__format__ (__printf__, 2, 3)));
12 extern void vsyslog (int __pri, __const char *__fmt, int __ap)
13 __attribute__ ((__format__ (__printf__, 2, 0)));
14 void
15 __vsyslog(int pri, const char *fmt, int ap)
18 void
19 __syslog_chk(int pri, int flag, const char *fmt, ...)
22 void
23 __vsyslog_chk(int pri, int flag, const char *fmt, int ap)
26 extern __typeof (__vsyslog_chk) __EI___vsyslog_chk __asm__("" ASMNAME ("__vsyslog_chk")); extern __typeof (__vsyslog_chk) __EI___vsyslog_chk __attribute__((alias ("" "__GI___vsyslog_chk")));
27 void
28 __syslog(int pri, const char *fmt, ...)
31 extern __typeof (__syslog) syslog __attribute__ ((alias ("__syslog")));
32 extern __typeof (syslog) __EI_syslog __asm__("" ASMNAME ("syslog")); extern __typeof (syslog) __EI_syslog __attribute__((alias ("" "__GI_syslog")));
33 extern __typeof (__vsyslog) vsyslog __attribute__ ((alias ("__vsyslog")));
34 extern __typeof (vsyslog) __EI_vsyslog __asm__("" ASMNAME ("vsyslog")); extern __typeof (vsyslog) __EI_vsyslog __attribute__((alias ("" "__GI_vsyslog")));
35 extern __typeof (syslog) syslog __asm__ ("" ASMNAME ("__GI_syslog")) __attribute__ ((visibility ("hidden")));
36 extern __typeof (vsyslog) vsyslog __asm__ ("" ASMNAME ("__GI_vsyslog")) __attribute__ ((visibility ("hidden")));
37 extern __typeof (__vsyslog_chk) __vsyslog_chk __asm__ ("" ASMNAME ("__GI___vsyslog_chk")) __attribute__ ((visibility ("hidden")));