brintos

brintos / llvm-project-archived public Read only

0
0
Text · 700 B · 71135ad Raw
38 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// <ios>10 11// class ios_base12 13// locale getloc() const;14 15#include <ios>16#include <string>17#include <cassert>18 19#include "test_macros.h"20 21class test22    : public std::ios23{24public:25    test()26    {27        init(0);28    }29};30 31int main(int, char**)32{33    const test t;34    assert(t.getloc().name() == std::string("C"));35 36  return 0;37}38