summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
blob: e06809f338714f0295c2378fc4b4c9ae8f034d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
#define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
#define ASMNAME2(prefix, cname) STRING (prefix) cname
#define STRING(x)    #x

extern inline int foo (void) { return 23; }
int bar (void) { return foo (); }
extern int foo (void) __attribute__ ((weak, alias ("xxx")));
int baz (void) { return foo (); }
int xxx(void) __asm__(ASMNAME ("xxx"));
int xxx(void) { return 23; }