aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-11 07:53:41 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-11 07:53:41 +0000
commitf7d7b65139fe65d825e0cc25c4741b6d01753371 (patch)
tree60ff46da695c9861fc073834cc0698f6f29e9c5f
parent752808fb4370a868cfba07d25f18f00916d0797c (diff)
downloadgcc-f7d7b65139fe65d825e0cc25c4741b6d01753371.zip
gcc-f7d7b65139fe65d825e0cc25c4741b6d01753371.tar.gz
gcc-f7d7b65139fe65d825e0cc25c4741b6d01753371.tar.bz2
* gcc.dg/cpp/if-2.c: Add wide char test without sign extension.
From-SVN: r38896
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/if-2.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f359cb7..e73fd5c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-11 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * gcc.dg/cpp/if-2.c: Add wide char test without sign extension.
+
2001-01-10 Alan Lehotsky <lehotsky@tiac.net>
* gcc.dg/20000926-1.c: Parameterize for machines with 16-bit ints.
diff --git a/gcc/testsuite/gcc.dg/cpp/if-2.c b/gcc/testsuite/gcc.dg/cpp/if-2.c
index 2832c46..4b9d288 100644
--- a/gcc/testsuite/gcc.dg/cpp/if-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/if-2.c
@@ -13,6 +13,10 @@
#error 0xfeed /* { dg-bogus "error" "wide charconst recognition 2" } */
#endif
+#if L'\x1234' != 0x1234
+#error 0xfeed /* { dg-bogus "error" "wide charconst recognition 2" } */
+#endif
+
#if 'abcd' /* { dg-warning "multi-character character constant" "multi-character charconst" } */
#endif