summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.traits/length.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.traits/length.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.traits/length.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/re/re.traits/length.pass.cpp b/libcxx/test/std/re/re.traits/length.pass.cpp
index 822f781abc4..dce6284bc19 100644
--- a/libcxx/test/std/re/re.traits/length.pass.cpp
+++ b/libcxx/test/std/re/re.traits/length.pass.cpp
@@ -17,7 +17,7 @@
#include <cassert>
#include "test_macros.h"
-int main()
+int main(int, char**)
{
assert(std::regex_traits<char>::length("") == 0);
assert(std::regex_traits<char>::length("1") == 1);
@@ -28,4 +28,6 @@ int main()
assert(std::regex_traits<wchar_t>::length(L"1") == 1);
assert(std::regex_traits<wchar_t>::length(L"12") == 2);
assert(std::regex_traits<wchar_t>::length(L"123") == 3);
+
+ return 0;
}
OpenPOWER on IntegriCloud