[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / re / re.results / re.results.const / default.pass.cpp
blob783cd29423d48a09c1e08014ce12f41bb27f5f82
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <regex>
11 // class match_results<BidirectionalIterator, Allocator>
13 // match_results(const Allocator& a = Allocator());
15 #include <regex>
16 #include <cassert>
17 #include "test_macros.h"
19 template <class CharT>
20 void
21 test()
23 std::match_results<const CharT*> m;
24 assert(m.size() == 0);
25 assert(!m.ready());
26 assert(m.get_allocator() == std::allocator<std::sub_match<const CharT*> >());
29 int main(int, char**)
31 test<char>();
32 test<wchar_t>();
34 return 0;