| Howard Hinnant | 5cd6658 | 2010-08-13 18:11:23 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// | 
|  | 2 | // | 
| Chandler Carruth | 57b08b0 | 2019-01-19 10:56:40 +0000 | [diff] [blame^] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | 
|  | 4 | // See https://llvm.org/LICENSE.txt for license information. | 
|  | 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | 
| Howard Hinnant | 5cd6658 | 2010-08-13 18:11:23 +0000 | [diff] [blame] | 6 | // | 
|  | 7 | //===----------------------------------------------------------------------===// | 
|  | 8 |  | 
| Eric Fiselier | 9f7cc58 | 2017-04-18 23:42:15 +0000 | [diff] [blame] | 9 | // UNSUPPORTED: c++98, c++03 | 
|  | 10 |  | 
| Howard Hinnant | 5cd6658 | 2010-08-13 18:11:23 +0000 | [diff] [blame] | 11 | // <regex> | 
|  | 12 |  | 
|  | 13 | // template <class charT, class traits = regex_traits<charT>> class basic_regex; | 
|  | 14 |  | 
|  | 15 | // basic_regex& operator=(initializer_list<charT> il); | 
|  | 16 |  | 
|  | 17 | #include <regex> | 
|  | 18 | #include <cassert> | 
| Marshall Clow | fd5ceb2 | 2016-04-26 16:24:44 +0000 | [diff] [blame] | 19 | #include "test_macros.h" | 
| Howard Hinnant | 5cd6658 | 2010-08-13 18:11:23 +0000 | [diff] [blame] | 20 |  | 
|  | 21 | int main() | 
|  | 22 | { | 
| Howard Hinnant | 5cd6658 | 2010-08-13 18:11:23 +0000 | [diff] [blame] | 23 | std::regex r2; | 
|  | 24 | r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}; | 
|  | 25 | assert(r2.flags() == std::regex::ECMAScript); | 
|  | 26 | assert(r2.mark_count() == 2); | 
| Howard Hinnant | 5cd6658 | 2010-08-13 18:11:23 +0000 | [diff] [blame] | 27 | } |