]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
value.cc: Change template args from char to wchar_t, literals from 'x' to L'x'.
authorEd Smith-Rowland <3dw4rd@verizon.net>
Wed, 11 Sep 2013 01:27:31 +0000 (01:27 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Wed, 11 Sep 2013 01:27:31 +0000 (01:27 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/28_regex/traits/wchar_t/value.cc

index e20d105af2eed169c4657ca5439fe74d25ff2934..c6c8db1b517bc0fc22e874fe2fe3e14644286a83 100644 (file)
@@ -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  <ktietz@redhat.com>
 
        PR libstdc++/54314
index e68dac64e03dfe0e41f3cb105d1da043340a684f..6d5885cc6278ecb1aeff7ab300395e0163ad6283 100644 (file)
 #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