summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp')
-rw-r--r--libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
index c035cf046a7..4c0218d6ef6 100644
--- a/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
@@ -63,7 +63,7 @@
#error RAND_MAX not defined
#endif
-int main()
+int main(int, char**)
{
size_t s = 0; ((void)s);
div_t d; ((void)d);
@@ -116,4 +116,6 @@ int main()
static_assert((std::is_same<decltype(wctomb(pc,L' ')), int>::value), "");
static_assert((std::is_same<decltype(mbstowcs(pw,"",0)), size_t>::value), "");
static_assert((std::is_same<decltype(wcstombs(pc,pwc,0)), size_t>::value), "");
+
+ return 0;
}
OpenPOWER on IntegriCloud