Marshall Clow | e0f8672 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | // <regex> |
| 11 | |
| 12 | // template <class ST, class SA, class Allocator, class charT, class traits> |
| 13 | // bool regex_match(const basic_string<charT, ST, SA>&&, |
| 14 | // match_results< |
| 15 | // typename basic_string<charT, ST, SA>::const_iterator, |
| 16 | // Allocator>&, |
| 17 | // const basic_regex<charT, traits>&, |
| 18 | // regex_constants::match_flag_type = |
| 19 | // regex_constants::match_default) = delete; |
| 20 | |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 21 | #if __cplusplus <= 201402L |
| 22 | #error |
| 23 | #else |
| 24 | |
Marshall Clow | e0f8672 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 25 | #include <regex> |
| 26 | #include <cassert> |
Marshall Clow | 85d5622 | 2016-04-26 19:29:35 +0000 | [diff] [blame] | 27 | |
Marshall Clow | e0f8672 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 28 | int main() |
| 29 | { |
| 30 | { |
| 31 | std::smatch m; |
| 32 | std::regex re{"*"}; |
| 33 | std::regex_match(std::string("abcde"), m, re); |
| 34 | } |
| 35 | } |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 36 | #endif |