From: Ed Smith-Rowland <3dw4rd@verizon.net> Date: Wed, 11 Sep 2013 01:27:31 +0000 (+0000) Subject: value.cc: Change template args from char to wchar_t, literals from 'x' to L'x'. X-Git-Tag: releases/gcc-4.9.0~4136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df7d9dfde3ac4d964866ce8867710dc788ecf3d7;p=thirdparty%2Fgcc.git value.cc: Change template args from char to wchar_t, literals from 'x' to L'x'. 2013-09-10 Ed Smith-Rowland <3dw4rd@verizon.net> * testsuite/28_regex/traits/wchar_t/value.cc: Change template args from char to wchar_t, literals from 'x' to L'x'. From-SVN: r202487 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e20d105af2ee..c6c8db1b517b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2013-09-10 Ed Smith-Rowland <3dw4rd@verizon.net> + + * testsuite/28_regex/traits/wchar_t/value.cc: Change template args + from char to wchar_t, literals from 'x' to L'x'. + 2013-09-10 Kai Tietz PR libstdc++/54314 diff --git a/libstdc++-v3/testsuite/28_regex/traits/wchar_t/value.cc b/libstdc++-v3/testsuite/28_regex/traits/wchar_t/value.cc index e68dac64e03d..6d5885cc6278 100644 --- a/libstdc++-v3/testsuite/28_regex/traits/wchar_t/value.cc +++ b/libstdc++-v3/testsuite/28_regex/traits/wchar_t/value.cc @@ -25,20 +25,20 @@ #include #include -// Tests the value() function of the regex_traits class. +// Tests the value() function of the regex_traits class. void test01() { bool test __attribute__((unused)) = true; - std::regex_traits t; - VERIFY( t.value('7', 8) == 7 ); - VERIFY( t.value('7', 10) == 7 ); - VERIFY( t.value('7', 16) == 7 ); - VERIFY( t.value('9', 8) == -1 ); - VERIFY( t.value('9', 10) == 9 ); - VERIFY( t.value('9', 16) == 9 ); - VERIFY( t.value('d', 8) == -1 ); - VERIFY( t.value('d', 10) == -1 ); - VERIFY( t.value('d', 16) == 13 ); + std::regex_traits t; + VERIFY( t.value(L'7', 8) == 7 ); + VERIFY( t.value(L'7', 10) == 7 ); + VERIFY( t.value(L'7', 16) == 7 ); + VERIFY( t.value(L'9', 8) == -1 ); + VERIFY( t.value(L'9', 10) == 9 ); + VERIFY( t.value(L'9', 16) == 9 ); + VERIFY( t.value(L'd', 8) == -1 ); + VERIFY( t.value(L'd', 10) == -1 ); + VERIFY( t.value(L'd', 16) == 13 ); } int