* gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
authorRichard Henderson <rth@redhat.com>
Sat, 8 Dec 2001 01:51:04 +0000 (17:51 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 8 Dec 2001 01:51:04 +0000 (17:51 -0800)
From-SVN: r47784

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/ucs.c

index e3e3046cff6b66c69c8f3f9c07ed658a63889ae2..5e09976c5817790d9baa62eca0e119c278fcb90f 100644 (file)
@@ -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
index d131b0b5b93c6720f77505091af004429800db6c..d306789e2f4964a639ba0ea4be59e59d988334ba 100644 (file)
@@ -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" } */