Files
xpressive/test/test_static.cpp

28 lines
709 B
C++
Executable File

///////////////////////////////////////////////////////////////////////////////
// test_static.cpp
//
// Copyright 2004 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/xpressive/xpressive_static.hpp>
#include "./test_minimal.hpp"
///////////////////////////////////////////////////////////////////////////////
// test_main
int test_main( int, char*[] )
{
using namespace boost::xpressive;
std::string str("bar");
sregex rx = 'b' >> *_ >> "ar";
smatch what;
if(!regex_match(str, what, rx))
{
BOOST_ERROR("oops");
}
return 0;
}