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 //===----------------------------------------------------------------------===//
8 
9 // <locale>
10 
11 // class messages<charT>
12 
13 // catalog open(const basic_string<char>& name, const locale&) const;
14 
15 #include <locale>
16 #include <cassert>
17 
18 #include "test_macros.h"
19 
20 // As far as I can tell, the messages facet is untestable.  I have a best
21 // effort implementation in the hopes that in the future I will learn how
22 // to test it.
23 
24 template <class CharT>
25 class F
26     : public std::messages<CharT>
27 {
28 public:
F(std::size_t refs=0)29     explicit F(std::size_t refs = 0)
30         : std::messages<CharT>(refs) {}
31 };
32 
main(int,char **)33 int main(int, char**)
34 {
35 
36   return 0;
37 }
38