brintos

brintos / llvm-project-archived public Read only

0
0
Text · 793 B · de536c7 Raw
34 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// REQUIRES: c++03 || c++11 || c++1410 11// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS12 13// <ios>14//15// class ios_base16// {17// public:18//     typedef T2 open_mode;19// };20 21//  These members were removed for C++1722 23#include "test_macros.h"24#include <strstream>25#include <cassert>26 27int main(int, char**)28{29    std::strstream::open_mode b = std::strstream::app;30    assert(b == std::ios::app);31 32  return 0;33}34