* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Mon, 1 Oct 2001 10:04:36 +0000 (10:04 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 1 Oct 2001 10:04:36 +0000 (10:04 +0000)
From-SVN: r45921

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/mi6.c
gcc/testsuite/gcc.dg/cpp/mi6a.h
gcc/testsuite/gcc.dg/cpp/mi6b.h
gcc/testsuite/gcc.dg/cpp/mi6d.h
gcc/testsuite/gcc.dg/cpp/mi6e.h

index b4506b43d009ae0ab823f0e2f91a98b18350b189..624b55e8bbacf73b762d2ca846d8fb08ef7ee7b6 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 8895706a49b47954a1313ac149803656d6841fd4..f35590085d04bb1d9e30abbe9a0e9f1538da13ae 100644 (file)
    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"
 #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
index b11021c920204f9fb9cc5e7b3240b40cb8b6f0d3..68a2fce4758c762f8c156d621387119802b8ce2a 100644 (file)
@@ -1,4 +1,4 @@
-#if IND
+#if NOT_DEFINED
  #ifdef VAR
    VAR++;
  #endif
index 0d89ddfc726b4026e1353cf7fa26da80b5b3d9b7..d2fe8be178470f583f6cb53e86eb64de027bc57f 100644 (file)
@@ -1,4 +1,4 @@
-#if NOT defined (macro)
+#if NOT defined (guard)
  #ifdef VAR
    VAR++;
  #endif
index 7cb4b6bcb9ee7ae2dfe2ed198b91535f81c1eff1..a1eabba8e926a6105e39e83f3404114b8e8e4b1b 100644 (file)
@@ -1,4 +1,4 @@
-#if EMPTY !defined (macro)
+#if EMPTYL !defined (guard)
  #ifdef VAR
    VAR++;
  #endif
index e60ca442bf4df72652842abf96051f6dd8f2c580..26ba7151475184c5992b9e3eb0125e2b87fac65f 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined (macro) EMPTY
+#if !defined (guard) EMPTYR
  #ifdef VAR
    VAR++;
  #endif