summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp
index 67bfd96f4dd..d48d86ee64c 100644
--- a/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp
@@ -15,7 +15,7 @@
#include <regex>
-int main() {
+int main(int, char**) {
assert(std::regex_match("X", std::regex("[X]")));
assert(std::regex_match("X", std::regex("[XY]")));
assert(!std::regex_match("X", std::regex("[^X]")));
@@ -40,4 +40,6 @@ int main() {
assert(!std::regex_match("_", std::regex("[\\W]")));
assert(std::regex_match("X", std::regex("[^\\W]")));
assert(std::regex_match("_", std::regex("[^\\W]")));
+
+ return 0;
}
OpenPOWER on IntegriCloud