* mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Oct 2001 10:04:36 +0000 (10:04 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Oct 2001 10:04:36 +0000 (10:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45921 138bc75d-0d04-0410-961f-82ee72b054a4

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 b4506b4..624b55e 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 8895706..f355900 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 b11021c..68a2fce 100644 (file)
@@ -1,4 +1,4 @@
-#if IND
+#if NOT_DEFINED
  #ifdef VAR
    VAR++;
  #endif
index 0d89ddf..d2fe8be 100644 (file)
@@ -1,4 +1,4 @@
-#if NOT defined (macro)
+#if NOT defined (guard)
  #ifdef VAR
    VAR++;
  #endif
index 7cb4b6b..a1eabba 100644 (file)
@@ -1,4 +1,4 @@
-#if EMPTY !defined (macro)
+#if EMPTYL !defined (guard)
  #ifdef VAR
    VAR++;
  #endif
index e60ca44..26ba715 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined (macro) EMPTY
+#if !defined (guard) EMPTYR
  #ifdef VAR
    VAR++;
  #endif