summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/strings/c.strings/cstring.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/strings/c.strings/cstring.pass.cpp')
-rw-r--r--libcxx/test/std/strings/c.strings/cstring.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/strings/c.strings/cstring.pass.cpp b/libcxx/test/std/strings/c.strings/cstring.pass.cpp
index c61f5c4ff8a..c8ee2789df4 100644
--- a/libcxx/test/std/strings/c.strings/cstring.pass.cpp
+++ b/libcxx/test/std/strings/c.strings/cstring.pass.cpp
@@ -17,7 +17,7 @@
#error NULL not defined
#endif
-int main()
+int main(int, char**)
{
std::size_t s = 0;
void* vp = 0;
@@ -60,4 +60,6 @@ int main()
ASSERT_SAME_TYPE(const char*, decltype(std::strrchr(cpc, 0)));
ASSERT_SAME_TYPE(const char*, decltype(std::strstr(cpc, cpc)));
#endif
+
+ return 0;
}
OpenPOWER on IntegriCloud