Commit ee216d80 by Jonathan Wakely Committed by Jonathan Wakely

minimal.cc: Minor tweaks to match narrow char version.

	* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
	Minor tweaks to match narrow char version.

From-SVN: r228436
parent c980d0b4
2015-10-02 Jonathan Wakely <jwakely@redhat.com> 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
Minor tweaks to match narrow char version.
* testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard * testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
explicit instantiation with check for new ABI. explicit instantiation with check for new ABI.
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
......
...@@ -24,12 +24,12 @@ ...@@ -24,12 +24,12 @@
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
using C = wchar_t; using C = wchar_t;
const C c = 'a'; const C c = L'a';
using traits = std::char_traits<C>; using traits = std::char_traits<C>;
using __gnu_test::SimpleAllocator; using __gnu_test::SimpleAllocator;
template class std::basic_string<C,traits, SimpleAllocator<C>>; template class std::basic_string<C, traits, SimpleAllocator<C>>;
void test01() void test01()
{ {
...@@ -47,4 +47,5 @@ void test01() { } ...@@ -47,4 +47,5 @@ void test01() { }
int main() int main()
{ {
test01(); test01();
return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment