* gcc.c-torture/compile/981001-4.c: New test.
From-SVN: r22739
This commit is contained in:
parent
1f72bfca66
commit
15bf24d80f
2 changed files with 15 additions and 0 deletions
|
@ -2,6 +2,7 @@ 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.
|
||||
* gcc.c-torture/compile/981001-4.c: New test.
|
||||
|
||||
1998-10-01 Robert Lipe <robertl@dgii.com>
|
||||
|
||||
|
|
14
gcc/testsuite/gcc.c-torture/compile/981001-4.c
Normal file
14
gcc/testsuite/gcc.c-torture/compile/981001-4.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#define P(a,b) P1(a,b)
|
||||
#define P1(a,b) a##b
|
||||
|
||||
#define ONCE(x, y) (x ?: x = y())
|
||||
#define PREFIX
|
||||
|
||||
extern int P(PREFIX, init) (void);
|
||||
|
||||
int
|
||||
fun(void)
|
||||
{
|
||||
static int memo;
|
||||
return ONCE(memo, P(PREFIX, init));
|
||||
}
|
Loading…
Add table
Reference in a new issue