summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/diagnostics/std.exceptions/range.error
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/diagnostics/std.exceptions/range.error')
-rw-r--r--libcxx/test/std/diagnostics/std.exceptions/range.error/range_error.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/diagnostics/std.exceptions/range.error/range_error.pass.cpp b/libcxx/test/std/diagnostics/std.exceptions/range.error/range_error.pass.cpp
index 211c53d12e2..92d1151ff6c 100644
--- a/libcxx/test/std/diagnostics/std.exceptions/range.error/range_error.pass.cpp
+++ b/libcxx/test/std/diagnostics/std.exceptions/range.error/range_error.pass.cpp
@@ -14,7 +14,7 @@
#include <string>
#include <cassert>
-int main()
+int main(int, char**)
{
static_assert((std::is_base_of<std::runtime_error, std::range_error>::value),
"std::is_base_of<std::runtime_error, std::range_error>::value");
@@ -38,4 +38,6 @@ int main()
e2 = e;
assert(e2.what() == msg);
}
+
+ return 0;
}
OpenPOWER on IntegriCloud