aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>1999-02-28 15:05:41 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-02-28 15:05:41 +0000
commit456bf3e3b353b0dd7ddcbc337c161448faaa1b12 (patch)
tree0413c16557b6575e2058bb74ad30e024b13e88e3 /gcc
parent6efbe8353c1b9f98944ff24e718813a4bc854fe4 (diff)
downloadgcc-456bf3e3b353b0dd7ddcbc337c161448faaa1b12.zip
gcc-456bf3e3b353b0dd7ddcbc337c161448faaa1b12.tar.gz
gcc-456bf3e3b353b0dd7ddcbc337c161448faaa1b12.tar.bz2
Minor tweaks to testing harness
From-SVN: r25508
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/cpp-if1.c8
-rw-r--r--gcc/testsuite/gcc.dg/cpp-if2.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp-if1.c b/gcc/testsuite/gcc.dg/cpp-if1.c
index e33c1a0..be0f618 100644
--- a/gcc/testsuite/gcc.dg/cpp-if1.c
+++ b/gcc/testsuite/gcc.dg/cpp-if1.c
@@ -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" } */
diff --git a/gcc/testsuite/gcc.dg/cpp-if2.c b/gcc/testsuite/gcc.dg/cpp-if2.c
index 32880e2..60e8ffd 100644
--- a/gcc/testsuite/gcc.dg/cpp-if2.c
+++ b/gcc/testsuite/gcc.dg/cpp-if2.c
@@ -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" } */