aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-12-07 17:51:04 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-12-07 17:51:04 -0800
commite9d7407e3ac81500f38c70f04ad5aaa928765cd0 (patch)
tree9cf0efdf336111d0c3dc7ad7c7e323f1e0dac9c1 /gcc
parent7814a308e422b29a671f65fefecd0adb466160c9 (diff)
downloadgcc-e9d7407e3ac81500f38c70f04ad5aaa928765cd0.zip
gcc-e9d7407e3ac81500f38c70f04ad5aaa928765cd0.tar.gz
gcc-e9d7407e3ac81500f38c70f04ad5aaa928765cd0.tar.bz2
* gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
From-SVN: r47784
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/ucs.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e3e3046..5e09976 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-12-07 Richard Henderson <rth@redhat.com>
+
+ * gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
+
2001-12-07 Stephane Carrez <Stephane.Carrez@sun.com>
* gcc.dg/sparc-ret.c: New file, test return corruption bug for
diff --git a/gcc/testsuite/gcc.dg/cpp/ucs.c b/gcc/testsuite/gcc.dg/cpp/ucs.c
index d131b0b..d306789 100644
--- a/gcc/testsuite/gcc.dg/cpp/ucs.c
+++ b/gcc/testsuite/gcc.dg/cpp/ucs.c
@@ -22,7 +22,9 @@ void foo ()
c = L"\U1234"[0]; /* { dg-error "incomplete" "incompete UCN 2" } */
c = L'\u000x'; /* { dg-error "non-hex" "non-hex digit in UCN" } */
- /* { dg-warning "too long" "" { target *-*-* } 24 } */
+ /* If sizeof(HOST_WIDE_INT) > sizeof(wchar_t), we can get a multi-character
+ constant warning even for wide characters. */
+ /* { dg-warning "too long|multi-character" "" { target *-*-* } 24 } */
c = '\u0024'; /* { dg-bogus "invalid" "0024 is a valid UCN" } */
c = "\u0040"[0]; /* { dg-bogus "invalid" "0040 is a valid UCN" } */