summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/variant/variant.relops
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-02 23:00:05 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-02 23:00:05 +0000
commit0d3d8de014f1012dd0b2c2c077099cf6face44e5 (patch)
tree393c7c9e6470ac1076fd1d504275a9da84dda05d /libcxx/test/std/utilities/variant/variant.relops
parent1882002c91fe37fa76d7379697cee4275a5bcc3a (diff)
downloadbcm5719-llvm-0d3d8de014f1012dd0b2c2c077099cf6face44e5.tar.gz
bcm5719-llvm-0d3d8de014f1012dd0b2c2c077099cf6face44e5.zip
Implement C++17 <variant>. Patch from Michael Park!
This patch was reviewed as https://reviews.llvm.org/D23263. llvm-svn: 288547
Diffstat (limited to 'libcxx/test/std/utilities/variant/variant.relops')
-rw-r--r--libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp b/libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp
index 51712ffdba3..4337b4bdbbd 100644
--- a/libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp
+++ b/libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp
@@ -49,27 +49,27 @@ struct MakeEmptyT {
MakeEmptyT(MakeEmptyT &&) { throw 42; }
MakeEmptyT &operator=(MakeEmptyT &&) { throw 42; }
};
-inline bool operator==(MakeEmptyT const &, MakeEmptyT const &) {
+inline bool operator==(const MakeEmptyT &, const MakeEmptyT &) {
assert(false);
return false;
}
-inline bool operator!=(MakeEmptyT const &, MakeEmptyT const &) {
+inline bool operator!=(const MakeEmptyT &, const MakeEmptyT &) {
assert(false);
return false;
}
-inline bool operator<(MakeEmptyT const &, MakeEmptyT const &) {
+inline bool operator<(const MakeEmptyT &, const MakeEmptyT &) {
assert(false);
return false;
}
-inline bool operator<=(MakeEmptyT const &, MakeEmptyT const &) {
+inline bool operator<=(const MakeEmptyT &, const MakeEmptyT &) {
assert(false);
return false;
}
-inline bool operator>(MakeEmptyT const &, MakeEmptyT const &) {
+inline bool operator>(const MakeEmptyT &, const MakeEmptyT &) {
assert(false);
return false;
}
-inline bool operator>=(MakeEmptyT const &, MakeEmptyT const &) {
+inline bool operator>=(const MakeEmptyT &, const MakeEmptyT &) {
assert(false);
return false;
}
@@ -158,7 +158,7 @@ void test_equality() {
}
template <class Var>
-constexpr bool test_less(Var const &l, Var const &r, bool expect_less,
+constexpr bool test_less(const Var &l, const Var &r, bool expect_less,
bool expect_greater) {
return ((l < r) == expect_less) && (!(l >= r) == expect_less) &&
((l > r) == expect_greater) && (!(l <= r) == expect_greater);
OpenPOWER on IntegriCloud