blob: d8cc1f0f616efebec4c92a5ac14683b3614daf95 [file] [log] [blame]
Marshall Clow7d357112014-02-19 21:21:11 +00001//===----------------------------------------------------------------------===//
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
Marshall Clowfd5ceb22016-04-26 16:24:44 +000021// XFAIL: C++98, c++03, c++11
Marshall Clow7d357112014-02-19 21:21:11 +000022
23#include <regex>
24#include <cassert>
Marshall Clowfd5ceb22016-04-26 16:24:44 +000025#include "test_macros.h"
Marshall Clow7d357112014-02-19 21:21:11 +000026
27int main()
28{
29 {
30 std::smatch m;
31 std::regex re{"*"};
32 std::regex_match(std::string("abcde"), m, re);
33 }
34}