* gcc.c-torture/compile/981001-4.c: New test.

From-SVN: r22739
This commit is contained in:
Jeffrey A Law 1998-10-02 01:21:18 +00:00 committed by Jeff Law
parent 1f72bfca66
commit 15bf24d80f
2 changed files with 15 additions and 0 deletions

View File

@ -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>

View 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));
}