diff options
author | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-01-18 12:00:38 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-01-18 12:00:38 +0000 |
commit | 34508ae824518688bdc83a4c73a141b21031c668 (patch) | |
tree | b3907a5e97d7a150568284eb928ba1a95c50dc20 /gcc | |
parent | 028d1f20f7547f48b7370209d1e446398f2bb4b1 (diff) | |
download | gcc-34508ae824518688bdc83a4c73a141b21031c668.zip gcc-34508ae824518688bdc83a4c73a141b21031c668.tar.gz gcc-34508ae824518688bdc83a4c73a141b21031c668.tar.bz2 |
* gcc.dg/cpp/if-2.c: Adjust for signed wchar_t.
From-SVN: r39116
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/if-2.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5579084..4482c3d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-01-18 Alexandre Oliva <aoliva@redhat.com> + + * gcc.dg/cpp/if-2.c: Adjust for signed wchar_t. + 2001-01-18 Nathan Sidwell <nathan@codesourcery.com> * g++.old-deja/g++.pt/unify8.C: New test. @@ -31,6 +35,7 @@ * gcc.c-torture/compile/20010117-1.c: New test. * gcc.c-torture/compile/20010117-2.c: New test. +>>>>>>> 1.1023 2001-01-15 Toon Moene <toon@moene.indiv.nluug.nl> * g77.f-torture/execute/20010116.[fx]: New test, diff --git a/gcc/testsuite/gcc.dg/cpp/if-2.c b/gcc/testsuite/gcc.dg/cpp/if-2.c index 55e3e71..866d25c 100644 --- a/gcc/testsuite/gcc.dg/cpp/if-2.c +++ b/gcc/testsuite/gcc.dg/cpp/if-2.c @@ -9,11 +9,9 @@ #error L'a' /* { dg-bogus "error" "wide charconst recognition 1" } */ #endif -#if 0 /* This test doesn't work on targets with signed 16-bit wchar_t. */ -#if L'\xfeed' != 0xfeed +#if L'\xfeed' != 0xfeed && L'\xfeed' != (0xfeed - 0x10000) #error 0xfeed /* { dg-bogus "error" "wide charconst recognition 2" } */ #endif -#endif #if L'\x1234' != 0x1234 #error 0x1234 /* { dg-bogus "error" "wide charconst recognition 3" } */ |