summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp b/libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp
index 7f7b24a75f6..d168cd70635 100644
--- a/libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp
+++ b/libcxx/test/std/utilities/optional/optional.relops/greater_than.pass.cpp
@@ -23,7 +23,7 @@ struct X {
constexpr bool operator>(const X& lhs, const X& rhs) { return lhs.i_ > rhs.i_; }
-int main() {
+int main(int, char**) {
{
typedef optional<X> O;
@@ -77,4 +77,6 @@ int main() {
static_assert(o1 > O2(1), "");
static_assert(!(O2(42) > o1), "");
}
+
+ return 0;
}
OpenPOWER on IntegriCloud