Minor tweaks to testing harness
authorZack Weinberg <zack@gcc.gnu.org>
Sun, 28 Feb 1999 15:05:41 +0000 (15:05 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sun, 28 Feb 1999 15:05:41 +0000 (15:05 +0000)
From-SVN: r25508

gcc/testsuite/gcc.dg/cpp-if1.c
gcc/testsuite/gcc.dg/cpp-if2.c

index e33c1a0a1e9249a138a769e9dc77c40c73812db2..be0f61828362b0711b8208e934b6297848279718 100644 (file)
@@ -1,12 +1,12 @@
 /* { dg-do preprocess } */ 
 /* { dg-options "-pedantic-errors" } */
 
-#if 0xa == 10
-#error yes /* { dg-error "#error yes" "normal conversion" } */
+#if 0xa != 10
+#error 0xa != 10 /* { dg-bogus "#error" "normal conversion" } */
 #endif
 
-#if 077 == 63
-#error yes /* { dg-error "#error yes" "normal conversion" } */
+#if 077 != 63
+#error 077 != 63 /* { dg-bogus "#error" "normal conversion" } */
 #endif
 
 #if 12wrt /* { dg-error "nvalid number" "invalid number" } */
index 32880e2a2a17c6912e4ce50fcb752f8e9da46971..60e8ffd22dcd7af7c819c13dbc358c9ef2cd67c5 100644 (file)
@@ -1,12 +1,12 @@
 /* { dg-do preprocess } */
 /* { dg-options -pedantic-errors } */
 
-#if 'a' == 'a' && '\001' == 1 && '\x12' == 0x12
-#error yes /* { dg-error "#error yes" "basic charconst recognition" } */
+#if 'a' != 'a' || '\001' != 1 || '\x12' != 0x12
+#error a,1,0x12 /* { dg-bogus "#error" "basic charconst recognition" } */
 #endif
 
-#if 'a' == L'a' && L'\xfeed' == 0xfeed
-#error yes /* { dg-error "#error yes" "wide charconst recognition" } */
+#if 'a' != L'a' || L'\xfeed' != 0xfeed
+#error L'a',0xfeed /* { dg-bogus "#error" "wide charconst recognition" } */
 #endif
 
 #if 'abcd' /* { dg-warning "multi-character character constant" "multi-character charconst" } */