diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
commit | 5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch) | |
tree | afde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/std/re/re.syn | |
parent | f11e8eab527fba316c64112f6e05de1a79693a3e (diff) | |
download | bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip |
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/std/re/re.syn')
18 files changed, 360 insertions, 0 deletions
diff --git a/libcxx/test/std/re/re.syn/cmatch.pass.cpp b/libcxx/test/std/re/re.syn/cmatch.pass.cpp new file mode 100644 index 00000000000..1364b7873ea --- /dev/null +++ b/libcxx/test/std/re/re.syn/cmatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef match_results<const char*> cmatch; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::match_results<const char*>, std::cmatch>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp new file mode 100644 index 00000000000..7b6ac133f5a --- /dev/null +++ b/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_iterator<const char*> cregex_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_iterator<const char*>, std::cregex_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp new file mode 100644 index 00000000000..36ee9b66ea9 --- /dev/null +++ b/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_token_iterator<const char*> cregex_token_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_token_iterator<const char*>, std::cregex_token_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/csub_match.pass.cpp b/libcxx/test/std/re/re.syn/csub_match.pass.cpp new file mode 100644 index 00000000000..e0de67b4feb --- /dev/null +++ b/libcxx/test/std/re/re.syn/csub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef sub_match<const char*> csub_match; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::sub_match<const char*>, std::csub_match>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/regex.pass.cpp b/libcxx/test/std/re/re.syn/regex.pass.cpp new file mode 100644 index 00000000000..a208442b966 --- /dev/null +++ b/libcxx/test/std/re/re.syn/regex.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef basic_regex<char> regex; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::basic_regex<char>, std::regex>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/smatch.pass.cpp b/libcxx/test/std/re/re.syn/smatch.pass.cpp new file mode 100644 index 00000000000..87323538968 --- /dev/null +++ b/libcxx/test/std/re/re.syn/smatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef match_results<string::const_iterator> smatch; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::match_results<std::string::const_iterator>, std::smatch>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp new file mode 100644 index 00000000000..7acd96194b0 --- /dev/null +++ b/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_iterator<string::const_iterator> sregex_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_iterator<std::string::const_iterator>, std::sregex_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp new file mode 100644 index 00000000000..185fd627b4f --- /dev/null +++ b/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_token_iterator<string::const_iterator> sregex_token_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_token_iterator<std::string::const_iterator>, std::sregex_token_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/ssub_match.pass.cpp b/libcxx/test/std/re/re.syn/ssub_match.pass.cpp new file mode 100644 index 00000000000..b378339664c --- /dev/null +++ b/libcxx/test/std/re/re.syn/ssub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef sub_match<string::const_iterator> ssub_match; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::sub_match<std::string::const_iterator>, std::ssub_match>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wcmatch.pass.cpp b/libcxx/test/std/re/re.syn/wcmatch.pass.cpp new file mode 100644 index 00000000000..3ca8ed51eab --- /dev/null +++ b/libcxx/test/std/re/re.syn/wcmatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef match_results<const wchar_t*> wcmatch; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::match_results<const wchar_t*>, std::wcmatch>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp new file mode 100644 index 00000000000..99469ecf82b --- /dev/null +++ b/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_iterator<const wchar_t*> wcregex_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_iterator<const wchar_t*>, std::wcregex_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp new file mode 100644 index 00000000000..f16911f2985 --- /dev/null +++ b/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_token_iterator<const wchar_t*> wcregex_token_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_token_iterator<const wchar_t*>, std::wcregex_token_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp b/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp new file mode 100644 index 00000000000..7e8c872b603 --- /dev/null +++ b/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef sub_match<const wchar_t*> wcsub_match; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::sub_match<const wchar_t*>, std::wcsub_match>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wregex.pass.cpp b/libcxx/test/std/re/re.syn/wregex.pass.cpp new file mode 100644 index 00000000000..635eac0176c --- /dev/null +++ b/libcxx/test/std/re/re.syn/wregex.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef basic_regex<wchar_t> wregex; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::basic_regex<wchar_t>, std::wregex>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wsmatch.pass.cpp b/libcxx/test/std/re/re.syn/wsmatch.pass.cpp new file mode 100644 index 00000000000..092c7d16d7a --- /dev/null +++ b/libcxx/test/std/re/re.syn/wsmatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef match_results<wstring::const_iterator> wsmatch; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::match_results<std::wstring::const_iterator>, std::wsmatch>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp new file mode 100644 index 00000000000..0052716e46d --- /dev/null +++ b/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_iterator<wstring::const_iterator> wsregex_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_iterator<std::wstring::const_iterator>, std::wsregex_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp new file mode 100644 index 00000000000..dc71991eb9b --- /dev/null +++ b/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef regex_token_iterator<wstring::const_iterator> wsregex_token_iterator; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::regex_token_iterator<std::wstring::const_iterator>, std::wsregex_token_iterator>::value), ""); +} diff --git a/libcxx/test/std/re/re.syn/wssub_match.pass.cpp b/libcxx/test/std/re/re.syn/wssub_match.pass.cpp new file mode 100644 index 00000000000..2360a15513d --- /dev/null +++ b/libcxx/test/std/re/re.syn/wssub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// <regex> + +// typedef sub_match<wstring::const_iterator> wssub_match; + +#include <regex> +#include <type_traits> + +int main() +{ + static_assert((std::is_same<std::sub_match<std::wstring::const_iterator>, std::wssub_match>::value), ""); +} |