mirror of git://gcc.gnu.org/git/gcc.git
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: r239206
This commit is contained in:
parent
60a1663f22
commit
2a35627433
|
|
@ -1,5 +1,23 @@
|
|||
2016-08-06 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
Backport from mainline
|
||||
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.
|
||||
|
||||
Backport from mainline
|
||||
2016-01-18 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <testsuite_hooks.h>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
using C = char;
|
||||
const C c = 'a';
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
||||
using __gnu_test::propagating_allocator;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <testsuite_hooks.h>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
using C = char;
|
||||
const C c = 'a';
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
||||
using __gnu_test::propagating_allocator;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include <testsuite_hooks.h>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <testsuite_hooks.h>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
using C = char;
|
||||
const C c = 'a';
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
||||
using __gnu_test::uneq_allocator;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <testsuite_hooks.h>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
using C = char;
|
||||
const C c = 'a';
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
||||
using __gnu_test::propagating_allocator;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <string>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
using C = char;
|
||||
const C c = 'a';
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
||||
using __gnu_test::propagating_allocator;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <testsuite_hooks.h>
|
||||
#include <testsuite_allocator.h>
|
||||
|
||||
#if _GLIBCXX_USE_CXX11_ABI && defined(_GLIBCXX_USE_WCHAR_T)
|
||||
using C = char;
|
||||
const C c = 'a';
|
||||
#if _GLIBCXX_USE_CXX11_ABI
|
||||
using C = wchar_t;
|
||||
const C c = L'a';
|
||||
using traits = std::char_traits<C>;
|
||||
|
||||
using __gnu_test::propagating_allocator;
|
||||
|
|
|
|||
Loading…
Reference in New Issue