Marshall Clow
76b26852b6
Implement LWG 2946, 3075 and 3076. Reviewed as https://reviews.llvm.org/D48616
...
llvm-svn: 336132
2018-07-02 18:41:15 +00:00
Billy Robert O'Neal III
ba40b0566f
Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065
...
llvm-svn: 318804
2017-11-21 21:37:26 +00:00
Billy Robert O'Neal III
83252766f9
Tolerate [[nodiscard]] annotations in the STL. Reviewed as https://reviews.llvm.org/D39033
...
llvm-svn: 318276
2017-11-15 07:40:37 +00:00
Stephan T. Lavavej
e23dde6449
[libcxx] [test] Fix unused local typedef warnings.
...
llvm-svn: 314259
2017-09-26 23:08:43 +00:00
Marshall Clow
064028bb05
Add even more string_view tests. These found some bugs in the default parameter value for rfind/find_last_of/find_last_not_of
...
llvm-svn: 312693
2017-09-07 04:19:32 +00:00
Roger Ferrer Ibanez
9d03c03858
Protect std::string tests under libcpp-no-exceptions
...
Skip tests that expect an exception be thrown and/or disable
unreachable catch handlers.
Differential Revision: https://reviews.llvm.org/D26612
llvm-svn: 288158
2016-11-29 16:40:19 +00:00
Roger Ferrer Ibanez
d056b5be51
Reverting wrong diff
...
I managed to confuse me with two reviews of the same thing and ended commiting the wrong one.
llvm-svn: 287868
2016-11-24 11:28:02 +00:00
Roger Ferrer Ibanez
c65daf3e4a
Protect std::string tests under libcpp-no-exceptions
...
Skip tests that expect an exception be thrown and/or disable
unreachable catch handlers.
Differential Revision: https://reviews.llvm.org/D26608
llvm-svn: 287865
2016-11-24 11:15:09 +00:00
Roger Ferrer Ibanez
8a915ed644
Protect exceptional paths under libcpp-no-exceptions
...
These tests are of the form
try {
action-that-may-throw
assert(!exceptional-condition)
assert(some-other-facts)
} catch (relevant-exception) {
assert(exceptional-condition)
}
Under libcpp-no-exceptions there is still value in verifying
some-other-facts while avoiding the exceptional case. So for these tests
just conditionally check some-other-facts if exceptional-condition is
false. When exception are supported make sure that a true
exceptional-condition throws an exception
Differential Revision: https://reviews.llvm.org/D26136
llvm-svn: 285697
2016-11-01 15:46:16 +00:00
Marshall Clow
a8fd1e4be0
Fix a few static_asserts that need extra parens on -03
...
llvm-svn: 282343
2016-09-24 23:52:21 +00:00
Marshall Clow
54f0981ebd
Implement proposed resolution for LWG#2758. Reviewed as D24446. Normally, I would wait for these to be voted upon at a committee meeting (November), but the current draft standard is broken, and this should fix it. (And if it doesn't, we want to know about it soonest)
...
llvm-svn: 282342
2016-09-24 22:45:42 +00:00
Marshall Clow
053d81ceeb
Implement std::string_view as described in http://wg21.link/P0254R1 . Reviewed as https://reviews.llvm.org/D21459
...
llvm-svn: 276238
2016-07-21 05:31:24 +00:00
Eric Fiselier
f2f2a6395f
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
...
This is a huge cleanup that helps make the libc++ test suite more portable.
Patch from STL@microsoft.com . Thanks STL!
llvm-svn: 272716
2016-06-14 21:31:42 +00:00
Eric Fiselier
1f4231f8cf
Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros
...
llvm-svn: 267947
2016-04-28 22:28:23 +00:00
Marshall Clow
49738fe10b
Remove a couple tabs that crept in
...
llvm-svn: 262932
2016-03-08 15:45:06 +00:00
Marshall Clow
dd1729fe8a
Implement P0272R1: Give 'std::string' a non-const '.data()' member function
...
llvm-svn: 262931
2016-03-08 15:44:30 +00:00
Asiri Rathnayake
f520c1445f
Make it possible to build a no-exceptions variant of libcxx.
...
Fixes a small omission in libcxx that prevents libcxx being built when
-DLIBCXX_ENABLE_EXCEPTIONS=0 is specified.
This patch adds XFAILS to all those tests that are currently failing
on the new -fno-exceptions library variant. Follow-up patches will
update the tests (progressively) to cope with the new library variant.
Change-Id: I4b801bd8d8e4fe7193df9e55f39f1f393a8ba81a
llvm-svn: 252598
2015-11-10 11:41:22 +00:00
Eric Fiselier
5a83710e37
Move test into test/std subdirectory.
...
llvm-svn: 224658
2014-12-20 01:40:03 +00:00