Ticket #4716: streamtest.cpp

File streamtest.cpp, 328 bytes (added by augiedoggie, 12 years ago)
Line 
1#include <sstream>
2#include <string>
3
4const char* data = "Test;;;&&&():?><+_)(*&^%$#@!~`aaTest;;;&&&():?><+_)(*&^%$#@!~`";
5
6int main(int argc, char** argv) {
7
8 std::ostringstream os;
9 std::string s;
10
11 // Populate our string
12 for(int i = 0; i < 200000; i++) {
13 s += data;
14 }
15
16 os << s; //Takes forever with gcc2!
17
18 return 0;
19}