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
This commit is contained in:
parent
23e0871671
commit
6f82f64bf6
3 changed files with 31 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Oct 1 19:05:20 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/compile/981001-2.c: New test.
|
||||
* gcc.c-torture/compile/981001-3.c: New test.
|
||||
|
||||
1998-10-01 Robert Lipe <robertl@dgii.com>
|
||||
|
||||
* lib/objc.exp (objc_target_compile): Add -L during compiles for
|
||||
|
|
12
gcc/testsuite/gcc.c-torture/compile/981001-2.c
Normal file
12
gcc/testsuite/gcc.c-torture/compile/981001-2.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#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)
|
14
gcc/testsuite/gcc.c-torture/compile/981001-3.c
Normal file
14
gcc/testsuite/gcc.c-torture/compile/981001-3.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#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;
|
Loading…
Add table
Reference in a new issue