OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20011119-2.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { 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
 
7
extern inline int foo (void) { return 23; }
8
int bar (void) { return foo (); }
9
extern int foo (void) __attribute__ ((weak, alias ("xxx")));
10
int baz (void) { return foo (); }
11
int xxx(void) __asm__(ASMNAME ("xxx"));
12
int xxx(void) { return 23; }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.