test cases for two bugs in cpplib
Zack Weinberg
zack@rabi.columbia.edu
Sun Sep 27 10:05:00 GMT 1998
Here are test cases for two bugs I found in cpplib (see egcs-patches
for fixes). Can someone please add them to the testsuite?
zw
-- cpp-bug-1.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)
-- cpp-bug-2.c --
#define P(a, b) P1(a,b)
#define P1(a,b) a##b
#define FLT_MIN_EXP (-125)
#define DBL_MIN_EXP (-1021)
#define MIN_EXP P(FLT,_MIN_EXP)
#define FLT FLT
int f1 = MIN_EXP;
#undef FLT
#define FLT DBL
int f2 = MIN_EXP;
More information about the Gcc-bugs
mailing list