forked from mirror/libcxx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
846 B
C++
37 lines
846 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// <strstream>
|
|
|
|
// class strstreambuf
|
|
|
|
// int overflow(int c);
|
|
|
|
// There was an overflow in the dylib on older macOS versions
|
|
// UNSUPPORTED: with_system_cxx_lib=macosx10.8
|
|
// UNSUPPORTED: with_system_cxx_lib=macosx10.7
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <strstream>
|
|
|
|
int main() {
|
|
std::ostrstream oss;
|
|
std::string s;
|
|
|
|
for (int i = 0; i < 4096; ++i)
|
|
s.push_back((i % 16) + 'a');
|
|
|
|
oss << s << std::ends;
|
|
std::cout << oss.str();
|
|
oss.freeze(false);
|
|
|
|
return 0;
|
|
}
|