* gcc.c-torture/compile/20000120-2.c: Use -fgnu89-inline.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20011119-1.c
blob5d036c93406a145abfbf612a3f7acc30b38d8b3b
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
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")));