summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp
index b519edc256b..5092d57c148 100644
--- a/libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.swap/swap.pass.cpp
@@ -16,7 +16,7 @@
#include <cassert>
#include "test_macros.h"
-int main()
+int main(int, char**)
{
std::regex r1("(a([bc]))");
std::regex r2;
@@ -25,4 +25,6 @@ int main()
assert(r1.mark_count() == 0);
assert(r2.flags() == std::regex::ECMAScript);
assert(r2.mark_count() == 2);
+
+ return 0;
}
OpenPOWER on IntegriCloud