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