[NFC] Try to fix test due asan failure
authorDiogo Sampaio <diogo.sampaio@arm.com>
Fri, 1 May 2020 16:16:58 +0000 (17:16 +0100)
committerDiogo Sampaio <diogo.sampaio@arm.com>
Fri, 1 May 2020 16:18:25 +0000 (17:18 +0100)
libcxx/test/std/re/re.const/re.matchflag/match_prev_avail.pass.cpp

index e42895b..5decf93 100644 (file)
@@ -34,7 +34,7 @@ int main() {
   assert(regex_match(str1 + 1, str1 + 2, regex("\\ba\\b"),
                      regex_constants::match_not_bow |
                          regex_constants::match_prev_avail));
-  assert(regex_search(str1, regex("\\ba"),
+  assert(regex_search(str1_scnd, regex("\\ba"),
                       regex_constants::match_not_bow |
                           regex_constants::match_prev_avail));