URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-src/gcc-4.5.1/libstdc++-v3/testsuite/21_strings/basic_string/capacity/char
- from Rev 424 to Rev 565
- ↔ Reverse comparison
Rev 424 → Rev 565
/18654.cc
22,6 → 22,12
#include <string> |
#include <testsuite_hooks.h> |
|
// { dg-options " -DSTR_MAX_SIZE=16" { target { or32-*-elf } } } |
|
#ifndef STR_MAX_SIZE |
#define STR_MAX_SIZE 20 |
#endif |
|
// libstdc++/18654 |
void test01() |
{ |
34,7 → 40,7
// and shrink-to-fit (in the future, maybe this will change |
// for short strings). |
const size_type minsize = 2 << 0; |
const size_type maxsize = 2 << 20; |
const size_type maxsize = 2 << STR_MAX_SIZE; |
for (size_type i = minsize; i <= maxsize; i *= 2) |
{ |
string str(i, 'x'); |