//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // class match_results // allocator_type get_allocator() const; #include #include #include "test_allocator.h" template void test(const Allocator& a) { std::match_results m(a); assert(m.size() == 0); assert(m.str() == std::basic_string()); assert(m.get_allocator() == a); } int main() { test(test_allocator >(3)); test(test_allocator >(3)); }