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
This commit is contained in:
Ed Smith-Rowland 2013-09-11 01:27:31 +00:00 committed by Edward Smith-Rowland
parent 174a05526a
commit df7d9dfde3
2 changed files with 16 additions and 11 deletions

View 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

View File

@ -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