modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20011119-1.c (about) 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 8 extern inline int foo (void) { return 23; } 9 int xxx(void) __asm__(ASMNAME ("xxx")); 10 int xxx(void) { return 23; } 11 extern int foo (void) __attribute__ ((weak, alias ("xxx")));