[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / depr / depr.str.strstreams / depr.strstreambuf / depr.strstreambuf.cons / default.pass.cpp
blob6ec30127ae5923155fdf40c6bc9608d66d812fac
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 // <strstream>
11 // class strstreambuf
13 // explicit strstreambuf(streamsize alsize_arg = 0);
15 #include <strstream>
16 #include <cassert>
18 #include "test_macros.h"
20 int main(int, char**)
23 std::strstreambuf s;
24 assert(s.str() == nullptr);
25 assert(s.pcount() == 0);
28 std::strstreambuf s(1024);
29 LIBCPP_ASSERT(s.str() == nullptr);
30 assert(s.pcount() == 0);
33 return 0;