cxx/test
Eric Fiselier b991975439 [libcxx] Fix use of operator comma where the types can be user defined
Summary:
An evil user might overload operator comma. Use a void cast to make sure any user overload is not selected.
Modify all the test iterators to define operator comma. 

Reviewers: danalbert, mclow.lists

Reviewed By: mclow.lists

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D5929

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220706 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-27 19:28:20 +00:00
..
algorithms Create a 'comma_iterator' class that overloads operator, and asserts when it's called. Add tests to mismatch to make sure it can't be blindsided by such an evil iterator. More tests for other algorithms forthcoming. Thanks to STL for pointing this out at CppCon and Yakov Galka for opening LWG issue #2133 2014-09-16 20:38:11 +00:00
atomics Fix unused variables in tests to placate scan-build. Patch from Steve MacKenzie. 2014-10-19 00:10:15 +00:00
containers [libcxx] Fix use of operator comma where the types can be user defined 2014-10-27 19:28:20 +00:00
depr Some tests used __typeof__ instead of decltype. Replace these usages. 2014-10-21 15:07:09 +00:00
diagnostics Linux: Correctly identify valid error codes 2014-05-29 05:02:22 +00:00
experimental [libcxx] expose experimental::erased_type for all standard versions. 2014-07-24 19:17:38 +00:00
extensions Do not derive __gnu_cxx::hash<T> from std::hash<T>. 2014-03-06 04:11:10 +00:00
input.output Whitespace maintenance. Remove a bunch of tabs that snuck in. No functionality change 2014-10-18 11:03:33 +00:00
iterators Implement LWG 2360: 'reverse_iterator::operator*() is unimplementable'. Note that this is a (small) behavior change in the library. Reverse iterators whose base iterators' operator* return references to 'within themselves' have been sacrificed to the greater goal of avoiding data races. 2014-03-11 17:16:17 +00:00
language.support Some tests used __typeof__ instead of decltype. Replace these usages. 2014-10-21 15:07:09 +00:00
localization [libcxx] XFAIL all currently failing libc++ tests for linux. 2014-10-23 21:17:36 +00:00
numerics [libcxx] Fix SFINAE in <cmath>. Patch from K-Ballo. 2014-10-17 00:31:47 +00:00
re [libcxx] XFAIL all currently failing libc++ tests for linux. 2014-10-23 21:17:36 +00:00
strings Mark cuchar tests as always xfail since we don't provide the header' 2014-08-18 05:09:51 +00:00
support [libcxx] Fix use of operator comma where the types can be user defined 2014-10-27 19:28:20 +00:00
thread Add support for "fancy" pointers to promise and packaged_task. 2014-10-23 06:24:45 +00:00
utilities Add support for "fancy" pointers to shared_ptr. Fixes PR20616 2014-10-23 04:12:28 +00:00
CMakeLists.txt [libcxx] Add --show-unsupported and --show-xfail to check-libcxx's default LIT args. 2014-08-23 04:33:20 +00:00
lit.cfg Change uses of sys.platform == 'linux2' to sys.platform.startswith('linux') 2014-10-23 22:57:56 +00:00
lit.site.cfg.in [libcxx] Redo adding support for building and testing with an ABI library not along linker paths 2014-10-19 00:42:41 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00
testit Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'. 2014-01-15 16:28:42 +00:00