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 // <ios>
10 
11 // class ios_base
12 
13 // locale getloc() const;
14 
15 #include <ios>
16 #include <string>
17 #include <cassert>
18 
19 #include "test_macros.h"
20 
21 class test
22     : public std::ios
23 {
24 public:
test()25     test()
26     {
27         init(0);
28     }
29 };
30 
main(int,char **)31 int main(int, char**)
32 {
33     const test t;
34     assert(t.getloc().name() == std::string("C"));
35 
36   return 0;
37 }
38