Commit 589a30d1 by Jonathan Wakely Committed by Jonathan Wakely

Fix std::wstring allocator tests

	* testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
	Remove reundant check for _GLIBCXX_USE_WCHAR_T and fix char type.
	* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
	Likewise.

From-SVN: r238996
parent 8bcd00bb
2016-08-02 Jonathan Wakely <jwakely@redhat.com> 2016-08-02 Jonathan Wakely <jwakely@redhat.com>
* testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
Remove reundant check for _GLIBCXX_USE_WCHAR_T and fix char type.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
Likewise.
* testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
Likewise.
* testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Improve * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Improve
comments. comments.
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = char; 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::propagating_allocator; using __gnu_test::propagating_allocator;
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = char; 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::propagating_allocator; using __gnu_test::propagating_allocator;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = wchar_t; using C = wchar_t;
const C c = L'a'; const C c = L'a';
using traits = std::char_traits<C>; using traits = std::char_traits<C>;
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = char; 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::uneq_allocator; using __gnu_test::uneq_allocator;
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = char; 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::propagating_allocator; using __gnu_test::propagating_allocator;
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <string> #include <string>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = char; 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::propagating_allocator; using __gnu_test::propagating_allocator;
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_allocator.h> #include <testsuite_allocator.h>
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T) #if _GLIBCXX_USE_CXX11_ABI
using C = char; 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::propagating_allocator; using __gnu_test::propagating_allocator;
......
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