diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:01:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:01:01 +0000 |
| commit | b7332b04df5d50c92640c74cfeb138ecb7e3f7ae (patch) | |
| tree | b1b49faa0cab1482905e0cda6f0ee5d97e3fe08f /test/libcxx/fuzzing/regex_ECMAScript.cpp | |
| parent | 6012fe9abb1f01b1b5b4ca908464804c21ff8602 (diff) | |
Notes
Diffstat (limited to 'test/libcxx/fuzzing/regex_ECMAScript.cpp')
| -rw-r--r-- | test/libcxx/fuzzing/regex_ECMAScript.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/libcxx/fuzzing/regex_ECMAScript.cpp b/test/libcxx/fuzzing/regex_ECMAScript.cpp deleted file mode 100644 index 2e57126022f3a..0000000000000 --- a/test/libcxx/fuzzing/regex_ECMAScript.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// -*- C++ -*- -//===--------------------- regex_ECMAScript.cpp ---------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// XFAIL - -#include "fuzzing.h" -#include <cassert> -#include <cstring> // for strlen - -const char * test_cases[] = { - "", - "s", - "b*c", - "ba?sf" - "lka*ea", - "adsf*kas;lnc441[0-9]1r34525234" - }; - -const size_t k_num_tests = sizeof(test_cases)/sizeof(test_cases[0]); - -int main () -{ - for (size_t i = 0; i < k_num_tests; ++i) - { - const size_t size = std::strlen(test_cases[i]); - const uint8_t *data = (const uint8_t *) test_cases[i]; - assert(0 == fuzzing::regex_ECMAScript(data, size)); - } - return 0; -} |
