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/] [981001-2.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 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.