diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2008-05-06 18:37:03 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2008-05-06 11:37:03 -0700 |
commit | a6ce2774017b0fdb93cdf4a225acd010cc070e11 (patch) | |
tree | 72b0595f73b03ef7a1cadd77ba20796dee910260 | |
parent | 85b56a901cbf2bd02fb545f0aecce61b0f3bf405 (diff) | |
download | gcc-a6ce2774017b0fdb93cdf4a225acd010cc070e11.zip gcc-a6ce2774017b0fdb93cdf4a225acd010cc070e11.tar.gz gcc-a6ce2774017b0fdb93cdf4a225acd010cc070e11.tar.bz2 |
re PR testsuite/36155 (UTF tests doesn't work on Linux)
2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/36155
* gcc.dg/utf32-4.c: Fix a typo.
* lib/target-supports.exp (check_effective_target_4byte_wchar_t):
Use __WCHAR_TYPE__ instead of wchar_t.
From-SVN: r134994
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/utf32-4.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7e4386e..c2434e7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2008-05-06 H.J. Lu <hongjiu.lu@intel.com> + + PR testsuite/36155 + * gcc.dg/utf32-4.c: Fix a typo. + + * lib/target-supports.exp (check_effective_target_4byte_wchar_t): + Use __WCHAR_TYPE__ instead of wchar_t. + 2008-05-06 Mark Shinwell <shinwell@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> Andrew Jenner <andrew@codesourcery.com> diff --git a/gcc/testsuite/gcc.dg/utf32-4.c b/gcc/testsuite/gcc.dg/utf32-4.c index 48d84fd..8a2dbdf 100644 --- a/gcc/testsuite/gcc.dg/utf32-4.c +++ b/gcc/testsuite/gcc.dg/utf32-4.c @@ -15,6 +15,6 @@ char32_t c5 = u'\u2029'; char32_t c6 = u'\U00064321'; /* { dg-warning "constant too long" } */ char32_t c7 = L'a'; char32_t c8 = L'\u2029'; -char32_t c9 = L'\U00064321'; /* { dg-warning "constant too long" { target { ! 4byte_wchar_t } } } */ +char32_t c9 = L'\U00064321'; /* { dg-warning "constant too long" "" { target { ! 4byte_wchar_t } } } */ int main () {} diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index e071934..de78c71 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2357,6 +2357,6 @@ proc check_effective_target_c99_runtime { } { proc check_effective_target_4byte_wchar_t { } { return [check_no_compiler_messages 4byte_wchar_t object { - int dummy[sizeof (wchar_t) >= 4 ? 1 : -1]; + int dummy[sizeof (__WCHAR_TYPE__) >= 4 ? 1 : -1]; }] } |