summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp')
-rw-r--r--libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp
index 62c552b9bec..8ed1513b356 100644
--- a/libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/string_h.pass.cpp
@@ -15,7 +15,7 @@
#error NULL not defined
#endif
-int main()
+int main(int, char**)
{
size_t s = 0;
void* vp = 0;
@@ -57,4 +57,6 @@ int main()
static_assert((std::is_same<decltype(strstr(cpc, cpc)), const char*>::value), "");
static_assert((std::is_same<decltype(memchr(vpc, 0, s)), const void*>::value), "");
#endif
+
+ return 0;
}
OpenPOWER on IntegriCloud