Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,12 @@ static_assert(!std::totally_ordered<std::unordered_map<int, void*> >);
static_assert(!std::totally_ordered<std::unordered_set<int> >);

struct A {};
// FIXME(cjdb): uncomment when operator<=> is implemented for each of these types.
// static_assert(!std::totally_ordered<std::array<A, 10> >);
// static_assert(!std::totally_ordered<std::deque<A> >);
// static_assert(!std::totally_ordered<std::forward_list<A> >);
// static_assert(!std::totally_ordered<std::list<A> >);
// static_assert(!std::totally_ordered<std::set<A> >);
// static_assert(!std::totally_ordered<std::vector<A> >);
static_assert(!std::totally_ordered<std::array<A, 10> >);
static_assert(!std::totally_ordered<std::deque<A> >);
static_assert(!std::totally_ordered<std::forward_list<A> >);
static_assert(!std::totally_ordered<std::list<A> >);
static_assert(!std::totally_ordered<std::set<A> >);
static_assert(!std::totally_ordered<std::vector<A> >);
} // namespace standard_types

namespace types_fit_for_purpose {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1034,11 +1034,8 @@ static_assert(
static_assert(!check_totally_ordered_with<std::vector<int>, int>());

struct A {};
// FIXME(cjdb): uncomment when operator<=> is implemented for each of these types.
// static_assert(!check_totally_ordered_with<std::optional<std::vector<A> >,
// std::optional<std::vector<A> > >());
// static_assert(!check_totally_ordered_with<std::optional<std::vector<A> >,
// std::vector<A> >());
static_assert(!check_totally_ordered_with<std::optional<std::vector<A> >, std::optional<std::vector<A> > >());
static_assert(!check_totally_ordered_with<std::optional<std::vector<A> >, std::vector<A> >());
struct B {};
static_assert(!check_totally_ordered_with<std::vector<A>, std::vector<B> >());
static_assert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,10 @@ void test() {
}
}

int main(int, char**) { return 0; }
int main(int, char**) {
test<std::unique_lock<std::mutex>>();
test<std::unique_lock<std::timed_mutex>>();
test<MyLock<std::mutex>>();
test<MyLock<std::timed_mutex>>();
return 0;
}
2 changes: 1 addition & 1 deletion libcxx/test/support/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define SUPPORT_TEST_MACROS_HPP

#ifdef __has_include
# if __has_include("<version>")
# if __has_include(<version>)
# include <version>
# else
# include <ciso646>
Expand Down