summaryrefslogtreecommitdiff
path: root/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/experimental/optional/optional.relops/greater_equal.pass.cpp')
-rw-r--r--test/std/experimental/optional/optional.relops/greater_equal.pass.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp b/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp
index 98d6855f93131..c0739dda6b832 100644
--- a/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp
+++ b/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator>= (const optional<T>& x, const optional<T>& y);
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -27,20 +26,17 @@ struct X
constexpr bool operator < ( const X &lhs, const X &rhs )
{ return lhs.i_ < rhs.i_ ; }
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef optional<X> O;
-
+
constexpr O o1; // disengaged
constexpr O o2; // disengaged
constexpr O o3{1}; // engaged
constexpr O o4{2}; // engaged
constexpr O o5{1}; // engaged
-
+
static_assert ( (o1 >= o1), "" );
static_assert ( (o1 >= o2), "" );
static_assert ( !(o1 >= o3), "" );
@@ -71,5 +67,4 @@ int main()
static_assert ( !(o5 >= o4), "" );
static_assert ( (o5 >= o5), "" );
}
-#endif
}