1 /* { dg-options "-fgnu89-inline" } */ 2 /* { dg-require-weak "" } */ 3 /* { dg-require-alias "" } */ 4 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) 5 #define ASMNAME2(prefix, cname) STRING (prefix) cname 6 #define STRING(x) #x 7 foo(void)8extern inline int foo (void) { return 23; } bar(void)9int bar (void) { return foo (); } 10 extern int foo (void) __attribute__ ((weak, alias ("xxx"))); baz(void)11int baz (void) { return foo (); } 12 int xxx(void) __asm__(ASMNAME ("xxx")); xxx(void)13int xxx(void) { return 23; } 14