8sa1-gcc/gcc/testsuite/gcc.c-torture/compile/981001-2.c
Jeffrey A Law 6f82f64bf6 981001-2.c: New test.
* gcc.c-torture/compile/981001-2.c: New test.
        * gcc.c-torture/compile/981001-3.c: New test.

From-SVN: r22723
1998-10-01 12:06:54 -06:00

13 lines
236 B
C

#define weak_alias(func, aliasname) \
extern __typeof (func) aliasname __attribute__ ((weak, alias (#func)));
#define add3(d, m, c) ((d) + (m) + (c))
int
__add3(int d, int m, int c)
{
return d + m + c;
}
weak_alias (__add3, add3)