OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libstdc++-v3/] [testsuite/] [27_io/] [basic_ostream/] [inserters_character/] [wchar_t/] [28277-1.cc] - Diff between revs 424 and 565

Show entire file | Details | Blame | View Log

Rev 424 Rev 565
Line 17... Line 17...
// with this library; see the file COPYING3.  If not see
// with this library; see the file COPYING3.  If not see
// <http://www.gnu.org/licenses/>.
// <http://www.gnu.org/licenses/>.
 
 
// 27.6.2.5.4 basic_ostream character inserters
// 27.6.2.5.4 basic_ostream character inserters
 
 
 
// { dg-options " -DSTR_LEN=500000" { target { or32-*-elf } } }
 
 
 
#ifndef STR_LEN
 
#define STR_LEN 5000000
 
#endif
 
 
#include <ostream>
#include <ostream>
#include <sstream>
#include <sstream>
#include <testsuite_hooks.h>
#include <testsuite_hooks.h>
 
 
// libstdc++/28277
// libstdc++/28277
Line 28... Line 34...
{
{
  using namespace std;
  using namespace std;
  bool test __attribute__((unused)) = true;
  bool test __attribute__((unused)) = true;
 
 
  wostringstream oss_01;
  wostringstream oss_01;
  const string str_01(5000000, 'a');
  const string str_01(STR_LEN, 'a');
 
 
  oss_01 << str_01.c_str();
  oss_01 << str_01.c_str();
 
 
  VERIFY( oss_01.good() );
  VERIFY( oss_01.good() );
  VERIFY( oss_01.str().size() == str_01.size() );
  VERIFY( oss_01.str().size() == str_01.size() );

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.