summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-04-06 14:32:42 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-04-06 14:32:42 +0000
commit02c162d71aa0e4cbed5e6d67d5a4ea820b9004e5 (patch)
treea6364c44816fbc23d80048cc2ef775f75f086826 /libcxx/test
parent215604c252e80faf8c5590e9740f227b8e135fc0 (diff)
downloadbcm5719-llvm-02c162d71aa0e4cbed5e6d67d5a4ea820b9004e5.tar.gz
bcm5719-llvm-02c162d71aa0e4cbed5e6d67d5a4ea820b9004e5.zip
Restore Missing awk regex tests. Thanks to dexonsmith for noticing, and proposing this as https://reviews.llvm.org/D16541
llvm-svn: 299652
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp
index f866929795d..378bc142abe 100644
--- a/libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp
@@ -26,7 +26,7 @@
int main()
{
-/* {
+ {
std::cmatch m;
const char s[] = "a";
assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk)));
@@ -616,13 +616,12 @@ int main()
assert(m.size() == 0);
}
std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
-*/ {
- /*
+ {
std::cmatch m;
const char s[] = "m";
- assert(std::regex_match(s, m, std::regex("[a[=M=]z]",
- std::regex_constants::awk);
- assert(m.size() == 1);
+ assert(std::regex_match(s, m,
+ std::regex("[a[=M=]z]", std::regex_constants::awk)));
+ assert(m.size() == 1);
assert(!m.prefix().matched);
assert(m.prefix().first == s);
assert(m.prefix().second == m[0].first);
@@ -632,8 +631,8 @@ int main()
assert(m.length(0) == std::char_traits<char>::length(s));
assert(m.position(0) == 0);
assert(m.str(0) == s);
-*/ }
-/* {
+ }
+ {
std::cmatch m;
const char s[] = "Ch";
assert(std::regex_match(s, m, std::regex("[a[.ch.]z]",
@@ -1389,4 +1388,4 @@ int main()
assert(m.position(0) == 0);
assert(m.str(0) == s);
}
-*/}
+}
OpenPOWER on IntegriCloud