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