Commit bab3db73 by Neil Booth Committed by Neil Booth

* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests.

From-SVN: r45921
parent 383af6a2
2001-10-01 Neil Booth <neil@daikokuya.demon.co.uk>
* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests.
2001-09-30 Neil Booth <neil@daikokuya.demon.co.uk>
* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: New test.
......
......@@ -14,10 +14,11 @@
increment VAR, since none of the initial set should have been
flagged as optimizable. */
#define EMPTY
#define EMPTYL
#define EMPTYR
#define NOT !
#define DEFINED defined (macro)
#define IND ! defined (macro)
#define DEFINED defined (guard)
#define NOT_DEFINED ! defined (guard)
#include "mi6a.h"
#include "mi6b.h"
......@@ -25,6 +26,15 @@
#include "mi6d.h"
#include "mi6e.h"
/* Define the macro guard, and redefine the macros to something that
forces compilation of the conditional blocks. */
#define guard
#define EMPTYL 1 ||
#define EMPTYR || 1
#define NOT
#define DEFINED 0
#define NOT_DEFINED 1
#define VAR five
int
......
#if IND
#if NOT_DEFINED
#ifdef VAR
VAR++;
#endif
......
#if NOT defined (macro)
#if NOT defined (guard)
#ifdef VAR
VAR++;
#endif
......
#if EMPTY !defined (macro)
#if EMPTYL !defined (guard)
#ifdef VAR
VAR++;
#endif
......
#if !defined (macro) EMPTY
#if !defined (guard) EMPTYR
#ifdef VAR
VAR++;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment