diff --git a/include/__config b/include/__config index a19b297e1..31369c8fe 100644 --- a/include/__config +++ b/include/__config @@ -143,10 +143,6 @@ #define _LIBCPP_NO_EXCEPTIONS #endif -#ifndef __GXX_RTTI -#define _LIBCPP_NO_RTTI -#endif - #define _LIBCPP_HAS_NO_TEMPLATE_ALIASES #ifndef __GXX_EXPERIMENTAL_CXX0X__ diff --git a/test/re/re.regex/re.regex.construct/il_flg.pass.cpp b/test/re/re.regex/re.regex.construct/il_flg.pass.cpp new file mode 100644 index 000000000..6ced811a0 --- /dev/null +++ b/test/re/re.regex/re.regex.construct/il_flg.pass.cpp @@ -0,0 +1,70 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// basic_regex(initializer_list il, +// flag_type f = regex_constants::ECMAScript); + +#include +#include + +#ifdef _LIBCPP_MOVE + +void +test(std::initializer_list il, std::regex_constants::syntax_option_type f, unsigned mc) +{ + std::basic_regex r(il, f); + assert(r.flags() == f); + assert(r.mark_count() == mc); +} + +#endif + +int main() +{ +#ifdef _LIBCPP_MOVE + std::string s1("\\(a\\)"); + std::string s2("\\(a[bc]\\)"); + std::string s3("\\(a\\([bc]\\)\\)"); + std::string s4("(a([bc]))"); + + test({'\\', '(', 'a', '\\', ')'}, std::regex_constants::basic, 1); + test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::basic, 1); + test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::basic, 2); + test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::basic, 0); + + test({'\\', '(', 'a', '\\', ')'}, std::regex_constants::extended, 0); + test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::extended, 0); + test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::extended, 0); + test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::extended, 2); + + test({'\\', '(', 'a', '\\', ')'}, std::regex_constants::ECMAScript, 0); + test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::ECMAScript, 0); + test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::ECMAScript, 0); + test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::ECMAScript, 2); + + test({'\\', '(', 'a', '\\', ')'}, std::regex_constants::awk, 0); + test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::awk, 0); + test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::awk, 0); + test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::awk, 2); + + test({'\\', '(', 'a', '\\', ')'}, std::regex_constants::grep, 1); + test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::grep, 1); + test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::grep, 2); + test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::grep, 0); + + test({'\\', '(', 'a', '\\', ')'}, std::regex_constants::egrep, 0); + test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::egrep, 0); + test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::egrep, 0); + test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::egrep, 2); +#endif +} diff --git a/test/re/re.regex/re.regex.construct/iter_iter.pass.cpp b/test/re/re.regex/re.regex.construct/iter_iter.pass.cpp new file mode 100644 index 000000000..2c387b576 --- /dev/null +++ b/test/re/re.regex/re.regex.construct/iter_iter.pass.cpp @@ -0,0 +1,43 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// template +// basic_regex(ForwardIterator first, ForwardIterator last); + +#include +#include + +#include "../../iterators.h" + +template +void +test(Iter first, Iter last, unsigned mc) +{ + std::basic_regex::value_type> r(first, last); + assert(r.flags() == std::regex_constants::ECMAScript); + assert(r.mark_count() == mc); +} + +int main() +{ + typedef forward_iterator F; + std::string s1("\\(a\\)"); + std::string s2("\\(a[bc]\\)"); + std::string s3("\\(a\\([bc]\\)\\)"); + std::string s4("(a([bc]))"); + + test(F(s1.begin()), F(s1.end()), 0); + test(F(s2.begin()), F(s2.end()), 0); + test(F(s3.begin()), F(s3.end()), 0); + test(F(s4.begin()), F(s4.end()), 2); +} diff --git a/test/re/re.regex/re.regex.construct/iter_iter_flg.pass.cpp b/test/re/re.regex/re.regex.construct/iter_iter_flg.pass.cpp new file mode 100644 index 000000000..e4db52c7c --- /dev/null +++ b/test/re/re.regex/re.regex.construct/iter_iter_flg.pass.cpp @@ -0,0 +1,69 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// template +// basic_regex(ForwardIterator first, ForwardIterator last, +// flag_type f = regex_constants::ECMAScript); + +#include +#include + +#include "../../iterators.h" + +template +void +test(Iter first, Iter last, std::regex_constants::syntax_option_type f, unsigned mc) +{ + std::basic_regex::value_type> r(first, last, f); + assert(r.flags() == f); + assert(r.mark_count() == mc); +} + +int main() +{ + typedef forward_iterator F; + std::string s1("\\(a\\)"); + std::string s2("\\(a[bc]\\)"); + std::string s3("\\(a\\([bc]\\)\\)"); + std::string s4("(a([bc]))"); + + test(F(s1.begin()), F(s1.end()), std::regex_constants::basic, 1); + test(F(s2.begin()), F(s2.end()), std::regex_constants::basic, 1); + test(F(s3.begin()), F(s3.end()), std::regex_constants::basic, 2); + test(F(s4.begin()), F(s4.end()), std::regex_constants::basic, 0); + + test(F(s1.begin()), F(s1.end()), std::regex_constants::extended, 0); + test(F(s2.begin()), F(s2.end()), std::regex_constants::extended, 0); + test(F(s3.begin()), F(s3.end()), std::regex_constants::extended, 0); + test(F(s4.begin()), F(s4.end()), std::regex_constants::extended, 2); + + test(F(s1.begin()), F(s1.end()), std::regex_constants::ECMAScript, 0); + test(F(s2.begin()), F(s2.end()), std::regex_constants::ECMAScript, 0); + test(F(s3.begin()), F(s3.end()), std::regex_constants::ECMAScript, 0); + test(F(s4.begin()), F(s4.end()), std::regex_constants::ECMAScript, 2); + + test(F(s1.begin()), F(s1.end()), std::regex_constants::awk, 0); + test(F(s2.begin()), F(s2.end()), std::regex_constants::awk, 0); + test(F(s3.begin()), F(s3.end()), std::regex_constants::awk, 0); + test(F(s4.begin()), F(s4.end()), std::regex_constants::awk, 2); + + test(F(s1.begin()), F(s1.end()), std::regex_constants::grep, 1); + test(F(s2.begin()), F(s2.end()), std::regex_constants::grep, 1); + test(F(s3.begin()), F(s3.end()), std::regex_constants::grep, 2); + test(F(s4.begin()), F(s4.end()), std::regex_constants::grep, 0); + + test(F(s1.begin()), F(s1.end()), std::regex_constants::egrep, 0); + test(F(s2.begin()), F(s2.end()), std::regex_constants::egrep, 0); + test(F(s3.begin()), F(s3.end()), std::regex_constants::egrep, 0); + test(F(s4.begin()), F(s4.end()), std::regex_constants::egrep, 2); +} diff --git a/test/re/re.regex/re.regex.construct/ptr.pass.cpp b/test/re/re.regex/re.regex.construct/ptr.pass.cpp new file mode 100644 index 000000000..23b3d1756 --- /dev/null +++ b/test/re/re.regex/re.regex.construct/ptr.pass.cpp @@ -0,0 +1,36 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// basic_regex(const charT* p); + +#include + +#include +#include + +template +void +test(const CharT* p, unsigned mc) +{ + std::basic_regex r(p); + assert(r.flags() == std::regex_constants::ECMAScript); + assert(r.mark_count() == mc); +} + +int main() +{ + test("\\(a\\)", 0); + test("\\(a[bc]\\)", 0); + test("\\(a\\([bc]\\)\\)", 0); + test("(a([bc]))", 2); +} diff --git a/test/re/re.regex/re.regex.construct/ptr_flg.pass.cpp b/test/re/re.regex/re.regex.construct/ptr_flg.pass.cpp index f2d7c8143..31f9da9e4 100644 --- a/test/re/re.regex/re.regex.construct/ptr_flg.pass.cpp +++ b/test/re/re.regex/re.regex.construct/ptr_flg.pass.cpp @@ -29,9 +29,33 @@ test(const CharT* p, std::regex_constants::syntax_option_type f, unsigned mc) int main() { - test("", std::regex_constants::basic, 0); test("\\(a\\)", std::regex_constants::basic, 1); test("\\(a[bc]\\)", std::regex_constants::basic, 1); test("\\(a\\([bc]\\)\\)", std::regex_constants::basic, 2); test("(a([bc]))", std::regex_constants::basic, 0); + + test("\\(a\\)", std::regex_constants::extended, 0); + test("\\(a[bc]\\)", std::regex_constants::extended, 0); + test("\\(a\\([bc]\\)\\)", std::regex_constants::extended, 0); + test("(a([bc]))", std::regex_constants::extended, 2); + + test("\\(a\\)", std::regex_constants::ECMAScript, 0); + test("\\(a[bc]\\)", std::regex_constants::ECMAScript, 0); + test("\\(a\\([bc]\\)\\)", std::regex_constants::ECMAScript, 0); + test("(a([bc]))", std::regex_constants::ECMAScript, 2); + + test("\\(a\\)", std::regex_constants::awk, 0); + test("\\(a[bc]\\)", std::regex_constants::awk, 0); + test("\\(a\\([bc]\\)\\)", std::regex_constants::awk, 0); + test("(a([bc]))", std::regex_constants::awk, 2); + + test("\\(a\\)", std::regex_constants::grep, 1); + test("\\(a[bc]\\)", std::regex_constants::grep, 1); + test("\\(a\\([bc]\\)\\)", std::regex_constants::grep, 2); + test("(a([bc]))", std::regex_constants::grep, 0); + + test("\\(a\\)", std::regex_constants::egrep, 0); + test("\\(a[bc]\\)", std::regex_constants::egrep, 0); + test("\\(a\\([bc]\\)\\)", std::regex_constants::egrep, 0); + test("(a([bc]))", std::regex_constants::egrep, 2); } diff --git a/test/re/re.regex/re.regex.construct/ptr_size_flg.pass.cpp b/test/re/re.regex/re.regex.construct/ptr_size_flg.pass.cpp new file mode 100644 index 000000000..532ed3bf0 --- /dev/null +++ b/test/re/re.regex/re.regex.construct/ptr_size_flg.pass.cpp @@ -0,0 +1,60 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// basic_regex(const charT* p, size_t len, flag_type f); + +#include +#include + +template +void +test(const CharT* p, std::size_t len, std::regex_constants::syntax_option_type f, + unsigned mc) +{ + std::basic_regex r(p, len, f); + assert(r.flags() == f); + assert(r.mark_count() == mc); +} + +int main() +{ + test("\\(a\\)", 5, std::regex_constants::basic, 1); + test("\\(a[bc]\\)", 9, std::regex_constants::basic, 1); + test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::basic, 2); + test("(a([bc]))", 9, std::regex_constants::basic, 0); + + test("\\(a\\)", 5, std::regex_constants::extended, 0); + test("\\(a[bc]\\)", 9, std::regex_constants::extended, 0); + test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::extended, 0); + test("(a([bc]))", 9, std::regex_constants::extended, 2); + + test("\\(a\\)", 5, std::regex_constants::ECMAScript, 0); + test("\\(a[bc]\\)", 9, std::regex_constants::ECMAScript, 0); + test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::ECMAScript, 0); + test("(a([bc]))", 9, std::regex_constants::ECMAScript, 2); + + test("\\(a\\)", 5, std::regex_constants::awk, 0); + test("\\(a[bc]\\)", 9, std::regex_constants::awk, 0); + test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::awk, 0); + test("(a([bc]))", 9, std::regex_constants::awk, 2); + + test("\\(a\\)", 5, std::regex_constants::grep, 1); + test("\\(a[bc]\\)", 9, std::regex_constants::grep, 1); + test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::grep, 2); + test("(a([bc]))", 9, std::regex_constants::grep, 0); + + test("\\(a\\)", 5, std::regex_constants::egrep, 0); + test("\\(a[bc]\\)", 9, std::regex_constants::egrep, 0); + test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::egrep, 0); + test("(a([bc]))", 9, std::regex_constants::egrep, 2); +} diff --git a/test/re/re.regex/re.regex.construct/string.pass.cpp b/test/re/re.regex/re.regex.construct/string.pass.cpp new file mode 100644 index 000000000..4145225a3 --- /dev/null +++ b/test/re/re.regex/re.regex.construct/string.pass.cpp @@ -0,0 +1,35 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// template +// basic_regex(const basic_string& s); + +#include +#include + +template +void +test(const String& p, unsigned mc) +{ + std::basic_regex r(p); + assert(r.flags() == std::regex_constants::ECMAScript); + assert(r.mark_count() == mc); +} + +int main() +{ + test(std::string("\\(a\\)"), 0); + test(std::string("\\(a[bc]\\)"), 0); + test(std::string("\\(a\\([bc]\\)\\)"), 0); + test(std::string("(a([bc]))"), 2); +} diff --git a/test/re/re.regex/re.regex.construct/string_flg.pass.cpp b/test/re/re.regex/re.regex.construct/string_flg.pass.cpp new file mode 100644 index 000000000..56ba2af7c --- /dev/null +++ b/test/re/re.regex/re.regex.construct/string_flg.pass.cpp @@ -0,0 +1,63 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template > class basic_regex; + +// template +// basic_regex(const basic_string& s, +// flag_type f = regex_constants::ECMAScript); + +#include + +#include +#include + +template +void +test(const String& p, std::regex_constants::syntax_option_type f, unsigned mc) +{ + std::basic_regex r(p, f); + assert(r.flags() == f); + assert(r.mark_count() == mc); +} + +int main() +{ + test(std::string("\\(a\\)"), std::regex_constants::basic, 1); + test(std::string("\\(a[bc]\\)"), std::regex_constants::basic, 1); + test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::basic, 2); + test(std::string("(a([bc]))"), std::regex_constants::basic, 0); + + test(std::string("\\(a\\)"), std::regex_constants::extended, 0); + test(std::string("\\(a[bc]\\)"), std::regex_constants::extended, 0); + test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::extended, 0); + test(std::string("(a([bc]))"), std::regex_constants::extended, 2); + + test(std::string("\\(a\\)"), std::regex_constants::ECMAScript, 0); + test(std::string("\\(a[bc]\\)"), std::regex_constants::ECMAScript, 0); + test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::ECMAScript, 0); + test(std::string("(a([bc]))"), std::regex_constants::ECMAScript, 2); + + test(std::string("\\(a\\)"), std::regex_constants::awk, 0); + test(std::string("\\(a[bc]\\)"), std::regex_constants::awk, 0); + test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::awk, 0); + test(std::string("(a([bc]))"), std::regex_constants::awk, 2); + + test(std::string("\\(a\\)"), std::regex_constants::grep, 1); + test(std::string("\\(a[bc]\\)"), std::regex_constants::grep, 1); + test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::grep, 2); + test(std::string("(a([bc]))"), std::regex_constants::grep, 0); + + test(std::string("\\(a\\)"), std::regex_constants::egrep, 0); + test(std::string("\\(a[bc]\\)"), std::regex_constants::egrep, 0); + test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::egrep, 0); + test(std::string("(a([bc]))"), std::regex_constants::egrep, 2); +} diff --git a/test/re/re.syn/cmatch.pass.cpp b/test/re/re.syn/cmatch.pass.cpp new file mode 100644 index 000000000..1fc5d7a4b --- /dev/null +++ b/test/re/re.syn/cmatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef match_results cmatch; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::cmatch>::value), ""); +} diff --git a/test/re/re.syn/cregex_iterator.pass.cpp b/test/re/re.syn/cregex_iterator.pass.cpp new file mode 100644 index 000000000..9140f1028 --- /dev/null +++ b/test/re/re.syn/cregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_iterator cregex_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::cregex_iterator>::value), ""); +} diff --git a/test/re/re.syn/cregex_token_iterator.pass.cpp b/test/re/re.syn/cregex_token_iterator.pass.cpp new file mode 100644 index 000000000..7d083bf21 --- /dev/null +++ b/test/re/re.syn/cregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_token_iterator cregex_token_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::cregex_token_iterator>::value), ""); +} diff --git a/test/re/re.syn/csub_match.pass.cpp b/test/re/re.syn/csub_match.pass.cpp new file mode 100644 index 000000000..d08a2fbc0 --- /dev/null +++ b/test/re/re.syn/csub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef sub_match csub_match; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::csub_match>::value), ""); +} diff --git a/test/re/re.syn/regex.pass.cpp b/test/re/re.syn/regex.pass.cpp new file mode 100644 index 000000000..fcdfee54d --- /dev/null +++ b/test/re/re.syn/regex.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef basic_regex regex; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::regex>::value), ""); +} diff --git a/test/re/re.syn/smatch.pass.cpp b/test/re/re.syn/smatch.pass.cpp new file mode 100644 index 000000000..454e7eb12 --- /dev/null +++ b/test/re/re.syn/smatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef match_results smatch; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::smatch>::value), ""); +} diff --git a/test/re/re.syn/sregex_iterator.pass.cpp b/test/re/re.syn/sregex_iterator.pass.cpp new file mode 100644 index 000000000..5579e56ce --- /dev/null +++ b/test/re/re.syn/sregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_iterator sregex_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::sregex_iterator>::value), ""); +} diff --git a/test/re/re.syn/sregex_token_iterator.pass.cpp b/test/re/re.syn/sregex_token_iterator.pass.cpp new file mode 100644 index 000000000..d2fa9538e --- /dev/null +++ b/test/re/re.syn/sregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_token_iterator sregex_token_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::sregex_token_iterator>::value), ""); +} diff --git a/test/re/re.syn/ssub_match.pass.cpp b/test/re/re.syn/ssub_match.pass.cpp new file mode 100644 index 000000000..4782344d9 --- /dev/null +++ b/test/re/re.syn/ssub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef sub_match ssub_match; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::ssub_match>::value), ""); +} diff --git a/test/re/re.syn/wcmatch.pass.cpp b/test/re/re.syn/wcmatch.pass.cpp new file mode 100644 index 000000000..5f3acd471 --- /dev/null +++ b/test/re/re.syn/wcmatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef match_results wcmatch; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wcmatch>::value), ""); +} diff --git a/test/re/re.syn/wcregex_iterator.pass.cpp b/test/re/re.syn/wcregex_iterator.pass.cpp new file mode 100644 index 000000000..792c00704 --- /dev/null +++ b/test/re/re.syn/wcregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_iterator wcregex_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wcregex_iterator>::value), ""); +} diff --git a/test/re/re.syn/wcregex_token_iterator.pass.cpp b/test/re/re.syn/wcregex_token_iterator.pass.cpp new file mode 100644 index 000000000..2e06331eb --- /dev/null +++ b/test/re/re.syn/wcregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_token_iterator wcregex_token_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wcregex_token_iterator>::value), ""); +} diff --git a/test/re/re.syn/wcsub_match.pass.cpp b/test/re/re.syn/wcsub_match.pass.cpp new file mode 100644 index 000000000..fbf9f54a7 --- /dev/null +++ b/test/re/re.syn/wcsub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef sub_match wcsub_match; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wcsub_match>::value), ""); +} diff --git a/test/re/re.syn/wregex.pass.cpp b/test/re/re.syn/wregex.pass.cpp new file mode 100644 index 000000000..fcb2600d2 --- /dev/null +++ b/test/re/re.syn/wregex.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef basic_regex wregex; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wregex>::value), ""); +} diff --git a/test/re/re.syn/wsmatch.pass.cpp b/test/re/re.syn/wsmatch.pass.cpp new file mode 100644 index 000000000..6bbf9900a --- /dev/null +++ b/test/re/re.syn/wsmatch.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef match_results wsmatch; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wsmatch>::value), ""); +} diff --git a/test/re/re.syn/wsregex_iterator.pass.cpp b/test/re/re.syn/wsregex_iterator.pass.cpp new file mode 100644 index 000000000..baeaddca7 --- /dev/null +++ b/test/re/re.syn/wsregex_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_iterator wsregex_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wsregex_iterator>::value), ""); +} diff --git a/test/re/re.syn/wsregex_token_iterator.pass.cpp b/test/re/re.syn/wsregex_token_iterator.pass.cpp new file mode 100644 index 000000000..3691cdb06 --- /dev/null +++ b/test/re/re.syn/wsregex_token_iterator.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef regex_token_iterator wsregex_token_iterator; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wsregex_token_iterator>::value), ""); +} diff --git a/test/re/re.syn/wssub_match.pass.cpp b/test/re/re.syn/wssub_match.pass.cpp new file mode 100644 index 000000000..2f533b7fd --- /dev/null +++ b/test/re/re.syn/wssub_match.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// typedef sub_match wssub_match; + +#include +#include + +int main() +{ + static_assert((std::is_same, std::wssub_match>::value), ""); +}