Marshall Clow | 7d35711 | 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 | |
Eric Fiselier | d04c685 | 2016-06-01 21:35:39 +0000 | [diff] [blame] | 12 | // template <class ST, class SA, class Allocator, class charT, class traits> |
| 13 | // bool regex_match(const basic_string<charT, ST, SA>&&, |
Marshall Clow | 7d35711 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 14 | // match_results< |
Eric Fiselier | d04c685 | 2016-06-01 21:35:39 +0000 | [diff] [blame] | 15 | // typename basic_string<charT, ST, SA>::const_iterator, |
| 16 | // Allocator>&, |
| 17 | // const basic_regex<charT, traits>&, |
| 18 | // regex_constants::match_flag_type = |
Marshall Clow | 7d35711 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 19 | // regex_constants::match_default) = delete; |
| 20 | |
Marshall Clow | 7d35711 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 21 | #include <regex> |
| 22 | #include <cassert> |
Marshall Clow | fd5ceb2 | 2016-04-26 16:24:44 +0000 | [diff] [blame] | 23 | #include "test_macros.h" |
Marshall Clow | 7d35711 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 24 | |
Marshall Clow | 8dc9dca | 2016-04-26 19:29:35 +0000 | [diff] [blame] | 25 | #if TEST_STD_VER < 14 |
| 26 | #error |
| 27 | #endif |
| 28 | |
Marshall Clow | 7d35711 | 2014-02-19 21:21:11 +0000 | [diff] [blame] | 29 | int main() |
| 30 | { |
| 31 | { |
| 32 | std::smatch m; |
| 33 | std::regex re{"*"}; |
| 34 | std::regex_match(std::string("abcde"), m, re); |
| 35 | } |
| 36 | } |