//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // class match_results // allocator_type get_allocator() const; #include #include #include "test_macros.h" #include "test_allocator.h" template void test(const Allocator& a) { std::match_results m(a); assert(m.size() == 0); assert(!m.ready()); assert(m.get_allocator() == a); } int main(int, char**) { test(test_allocator >(3)); test(test_allocator >(3)); return 0; }