[PATCH] D21715: [libcxx] [test] Make default_noexcept.pass.cpp tests more portable.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 24 18:35:22 PDT 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

Make default_noexcept.pass.cpp tests more portable.

They were static_asserting that the following things are nothrow-default-constructible:

ordered/unordered associative containers
container adaptors
deque
forward_list
list
vector<bool>

The Standard doesn't mark these things as having noexcept default constructors, so the static_asserts should be marked as libc++ specific.

http://reviews.llvm.org/D21715

Files:
  test/std/containers/associative/map/map.cons/default_noexcept.pass.cpp
  test/std/containers/associative/multimap/multimap.cons/default_noexcept.pass.cpp
  test/std/containers/associative/multiset/multiset.cons/default_noexcept.pass.cpp
  test/std/containers/associative/set/set.cons/default_noexcept.pass.cpp
  test/std/containers/container.adaptors/priority.queue/priqueue.cons/default_noexcept.pass.cpp
  test/std/containers/container.adaptors/queue/queue.cons/default_noexcept.pass.cpp
  test/std/containers/container.adaptors/stack/stack.cons/default_noexcept.pass.cpp
  test/std/containers/sequences/deque/deque.cons/default_noexcept.pass.cpp
  test/std/containers/sequences/forwardlist/forwardlist.cons/default_noexcept.pass.cpp
  test/std/containers/sequences/list/list.cons/default_noexcept.pass.cpp
  test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp
  test/std/containers/unord/unord.map/unord.map.cnstr/default_noexcept.pass.cpp
  test/std/containers/unord/unord.multimap/unord.multimap.cnstr/default_noexcept.pass.cpp
  test/std/containers/unord/unord.multiset/unord.multiset.cnstr/default_noexcept.pass.cpp
  test/std/containers/unord/unord.set/unord.set.cnstr/default_noexcept.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21715.61873.patch
Type: text/x-patch
Size: 13024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160625/edfc53fe/attachment-0001.bin>


More information about the cfe-commits mailing list