diff options
author | Ed Smith-Rowland <3dw4rd@verizon.net> | 2013-09-11 01:27:31 +0000 |
---|---|---|
committer | Edward Smith-Rowland <emsr@gcc.gnu.org> | 2013-09-11 01:27:31 +0000 |
commit | df7d9dfde3ac4d964866ce8867710dc788ecf3d7 (patch) | |
tree | 2026f9623fdc70af972b00b0e48874d3c61d186b /libstdc++-v3/testsuite/28_regex | |
parent | 174a05526aff1926811c7f4da22a0bf18ce21566 (diff) | |
download | gcc-df7d9dfde3ac4d964866ce8867710dc788ecf3d7.zip gcc-df7d9dfde3ac4d964866ce8867710dc788ecf3d7.tar.gz gcc-df7d9dfde3ac4d964866ce8867710dc788ecf3d7.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3/testsuite/28_regex')
-rw-r--r-- | libstdc++-v3/testsuite/28_regex/traits/wchar_t/value.cc | 22 |
1 files changed, 11 insertions, 11 deletions
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 e68dac6..6d5885c 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 <regex> #include <testsuite_hooks.h> -// Tests the value() function of the regex_traits<char> class. +// Tests the value() function of the regex_traits<wchar_t> class. void test01() { bool test __attribute__((unused)) = true; - std::regex_traits<char> 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<wchar_t> 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 |