Jonathan Roelofs
eb7b5e74d4
Rename system_lib -> system_cxx_lib. NFC
...
llvm-svn: 226061
2015-01-14 23:38:12 +00:00
Marshall Clow
9db9069cf3
Make regex::assign not clobber the regex in case of failure. Fixes PR#22213
...
llvm-svn: 225799
2015-01-13 16:49:52 +00:00
Eric Fiselier
4fc4864bbd
Fix vexing parse in test.
...
llvm-svn: 225633
2015-01-12 15:56:41 +00:00
Marshall Clow
612c2c7469
One more #include request in the test suite from Walter Brown
...
llvm-svn: 225609
2015-01-11 18:07:06 +00:00
Marshall Clow
e21582e742
Walter Brown sent a list of tests which needed 'additional includes' to match what was in the standard. Added these includes to the tests. No changes to the library or test results.
...
llvm-svn: 225541
2015-01-09 20:25:52 +00:00
Marshall Clow
a257ab0803
In early C++11 standard drafts, std::function derived from std::unary_function or std::binary_function if there was only one (or two) parameters. Before C++11 shipped, this restiction was lifted, but libc++ still does this (which is fine). However, the tests still check for this outdated requiremnt. Change then to check for the nested typedefs instead (which are still required by the standard). No change to the library.
...
llvm-svn: 225430
2015-01-08 06:36:41 +00:00
Marshall Clow
c51d3ecb98
Add checks to make sure the hash functor has the right typedefs
...
llvm-svn: 225429
2015-01-08 06:18:59 +00:00
Marshall Clow
6855c93ce9
Missed a typename
...
llvm-svn: 225408
2015-01-07 22:26:48 +00:00
Marshall Clow
d95510ebba
libc++ implements its' hash objects as deriving from std::unary_function, and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library.
...
llvm-svn: 225403
2015-01-07 21:53:23 +00:00
Marshall Clow
601fa8d824
In C++03, a bunch of the arithmetic/logical/comparison functors (such as negate/bit_not.pass/logical_not) were defined as deriving from unary_funtion. That restriction was removed in C++11, but the tests still check for this. Change the test to look for the embedded types first_argument/second_argument/result_type. No change to the library, just more standards-compliant tests. Thanks to STL @ Microsoft for the suggestion.
...
llvm-svn: 225402
2015-01-07 21:51:30 +00:00
Marshall Clow
842b4aecf8
Add tests to check the typedefs from the result of std::owner_less
...
llvm-svn: 225381
2015-01-07 20:54:51 +00:00
Marshall Clow
9570e7b04a
Missed one comparison test in r225375
...
llvm-svn: 225376
2015-01-07 20:40:28 +00:00
Marshall Clow
66369c03a3
In C++03, a bunch of the arithmetic/logical/comparison functors (such as add/equal_to/logical_or) were defined as deriving from binary_funtion. That restriction was removed in C++11, but the tests still check for this. Change the test to look for the embedded types first_argument/second_argument/result_type. No change to the library, just more standards-compliant tests. Thanks to STL @ Microsoft for the suggestion.
...
llvm-svn: 225375
2015-01-07 20:31:06 +00:00
Dan Albert
d5c19bb16d
Move a test to the new tests directory.
...
I had written the patch that added this test before the tests were
moved into tests/std, so the test ended up in the wrong directory.
llvm-svn: 225300
2015-01-06 22:18:27 +00:00
Marshall Clow
d632356aa3
Fix PR 22106; make std::swap work for multi-dimensional arrays. Thanks to Peter Griess for the report and suggested fix
...
llvm-svn: 225285
2015-01-06 19:20:49 +00:00
Eric Fiselier
279663c1b4
Prevent ill-formed instantiation of __invoke_of<...> during the evaluation of a bind expression. Fixes PR22003.
...
The SFINAE on the function __mu(Fn, Args...) that evaluates nested bind
expressions always tries to deduce the return type for Fn(Args...) even when Fn
is not a nested bind expression. This can cause hard compile errors when the
instantation of Fn(Args...) is ill-formed. This patch prevents the instantation
of __invoke_of<Fn, Args...> unless Fn is actually a bind expression.
Bug reportand patch from Michel Morin.
http://llvm.org/bugs/show_bug.cgi?id=22003
llvm-svn: 224753
2014-12-23 05:54:34 +00:00
Marshall Clow
09ac1efe14
Remove non-const test to get test passing. Will come back later and (correctly) add non-const tests
...
llvm-svn: 224748
2014-12-23 01:30:39 +00:00
Eric Fiselier
2cbc654d93
[libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers.
...
Summary:
MSAN and ASAN also replace new/delete which leads to a link error in these tests. Currently they are unsupported but I think it would be useful if these tests could run with sanitizers.
This patch creates a support header that consolidates the new/delete replacement functionality and checking.
When we are using sanitizers new and delete are no longer replaced and the checks always return true.
Reviewers: mclow.lists, danalbert, jroelofs, EricWF
Reviewed By: EricWF
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D6562
llvm-svn: 224741
2014-12-22 22:38:59 +00:00
Eric Fiselier
5a83710e37
Move test into test/std subdirectory.
...
llvm-svn: 224658
2014-12-20 01:40:03 +00:00