blob: fb9677f7e93927e89ee3cd5f664c8481dcc2cac1 [file] [log] [blame]
Marshall Clow7d357112014-02-19 21:21:11 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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 Clow7d357112014-02-19 21:21:11 +00006//
7//===----------------------------------------------------------------------===//
8
9// <regex>
10
Eric Fiselierd04c6852016-06-01 21:35:39 +000011// template <class ST, class SA, class Allocator, class charT, class traits>
12// bool regex_search(const basic_string<charT, ST, SA>&&,
Marshall Clow7d357112014-02-19 21:21:11 +000013// match_results<
Eric Fiselierd04c6852016-06-01 21:35:39 +000014// typename basic_string<charT, ST, SA>::const_iterator,
15// Allocator>&,
16// const basic_regex<charT, traits>&,
17// regex_constants::match_flag_type =
Marshall Clow7d357112014-02-19 21:21:11 +000018// regex_constants::match_default) = delete;
19
Marshall Clow7d357112014-02-19 21:21:11 +000020#include <regex>
21#include <cassert>
Marshall Clowfd5ceb22016-04-26 16:24:44 +000022#include "test_macros.h"
Marshall Clow7d357112014-02-19 21:21:11 +000023
Marshall Clow8dc9dca2016-04-26 19:29:35 +000024#if TEST_STD_VER < 14
25#error
26#endif
27
JF Bastien2df59c52019-02-04 20:31:13 +000028int main(int, char**)
Marshall Clow7d357112014-02-19 21:21:11 +000029{
30 {
31 std::smatch m;
32 std::regex re{"*"};
33 std::regex_search(std::string("abcde"), m, re);
34 }
JF Bastien2df59c52019-02-04 20:31:13 +000035
36 return 0;
Marshall Clow7d357112014-02-19 21:21:11 +000037}