This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3 patch] Improve some container allocator tests


This adds { dg-do compile } to some tests that only use static_assert
and adjusts the swap overloads so that all commented-out assertions
can be enabled.

2013-11-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * testsuite/23_containers/forward_list/allocator/noexcept.cc: Change
        to compile-only test. Adjust swap overload to handle rebound
        allocators.
        * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
        * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
        * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
        * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
        * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
        Likewise.
        * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
        Likewise.
        * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
        Likewise.
        * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
        Likewise.
        * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
        * testsuite/23_containers/vector/allocator/swap.cc: Add elements
        before swapping.

Tested x86_64-linux, committed to trunk.

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]