diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-21 21:37:26 +0000 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-21 21:37:26 +0000 |
commit | ba40b0566ff0e835bc8234a4651e8cbf76181c3e (patch) | |
tree | e06d8a46d0d11568b8e772d15a6d60fd220e9e2b /libcxx/test/std/re | |
parent | 9dc54e25f007bf5309894337c8682a678deb7033 (diff) | |
download | bcm5719-llvm-ba40b0566ff0e835bc8234a4651e8cbf76181c3e.tar.gz bcm5719-llvm-ba40b0566ff0e835bc8234a4651e8cbf76181c3e.zip |
Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065
llvm-svn: 318804
Diffstat (limited to 'libcxx/test/std/re')
-rw-r--r-- | libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/std/re/re.grammar/excessive_brace_count.pass.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp index 13a352c3eab..0040f7bfa08 100644 --- a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp @@ -33,7 +33,7 @@ extern "C" void LLVMFuzzerTestOneInput(const char *data) std::regex::flag_type flag = std::regex_constants::grep; std::string s((const char *)data, size); std::regex re(s, flag); - (void)std::regex_match(s, re); + TEST_IGNORE_NODISCARD std::regex_match(s, re); } catch (std::regex_error &) {} } diff --git a/libcxx/test/std/re/re.grammar/excessive_brace_count.pass.cpp b/libcxx/test/std/re/re.grammar/excessive_brace_count.pass.cpp index 7fe5f04f81d..cc74a89f39e 100644 --- a/libcxx/test/std/re/re.grammar/excessive_brace_count.pass.cpp +++ b/libcxx/test/std/re/re.grammar/excessive_brace_count.pass.cpp @@ -20,7 +20,7 @@ int main() { for (std::regex_constants::syntax_option_type op : {std::regex::basic, std::regex::grep}) { try { - (void)std::regex("a\\{100000000000000000\\}", op); + TEST_IGNORE_NODISCARD std::regex("a\\{100000000000000000\\}", op); assert(false); } catch (const std::regex_error &e) { assert(e.code() == std::regex_constants::error_badbrace); @@ -30,7 +30,7 @@ int main() { {std::regex::ECMAScript, std::regex::extended, std::regex::egrep, std::regex::awk}) { try { - (void)std::regex("a{100000000000000000}", op); + TEST_IGNORE_NODISCARD std::regex("a{100000000000000000}", op); assert(false); } catch (const std::regex_error &e) { assert(e.code() == std::regex_constants::error_badbrace); |