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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [981001-2.c] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* { dg-require-weak "" } */
2
/* { dg-require-alias "" } */
3
#define weak_alias(func, aliasname) \
4
        extern __typeof (func) aliasname __attribute__ ((weak, alias (#func)));
5
 
6
#define add3(d, m, c) ((d) + (m) + (c))
7
 
8
int
9
__add3(int d, int m, int c)
10
{
11
  return d + m + c;
12
}
13
 
14
weak_alias (__add3, add3)

powered by: WebSVN 2.1.0

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