//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // class match_results // match_results(const Allocator& a = Allocator()); #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)); }