1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/unittests
Jakob Stoklund Olesen 223ce5e130 Add an assertion for a likely ilist::splice() contract violation.
The single-element ilist::splice() function supports a noop move:

  List.splice(I, List, I);

The corresponding std::list function doesn't allow that, so add a unit
test to document that behavior.

This also means that

  List.splice(I, List, F);

is somewhat surprisingly not equivalent to

  List.splice(I, List, F, next(F));

This patch adds an assertion to catch the illegal case I == F above.
Alternatively, we could make I == F a legal noop, but that would make
ilist differ even more from std::list.

llvm-svn: 170443
2012-12-18 19:28:37 +00:00
..
ADT Add an assertion for a likely ilist::splice() contract violation. 2012-12-18 19:28:37 +00:00
Analysis Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
Bitcode llvm/unittests: Simplify LINK_COMPONENTS. 2012-06-21 22:17:51 +00:00
ExecutionEngine Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
Option Copy clang/Driver/<Option parsing stuff> to llvm. 2012-12-05 00:29:32 +00:00
Support Fix some integer constant warnings by using a suffix 2012-12-17 22:11:17 +00:00
Transforms Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
VMCore Reorganize FastMathFlags to be a wrapper around unsigned, and streamline some interfaces. 2012-12-09 21:12:04 +00:00
CMakeLists.txt Copy clang/Driver/<Option parsing stuff> to llvm. 2012-12-05 00:29:32 +00:00
Makefile Undo the hack in r147427 and move this unittest to a better home. This 2012-01-02 09:19:48 +00:00
Makefile.unittest build/unittests: Fix llvm-config names for gtest libraries, and bring Makefile 2011-12-15 23:35:08 +00:00