diff options
author | Steve Ellcey <sje@gcc.gnu.org> | 2013-01-14 20:57:58 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2013-01-14 20:57:58 +0000 |
commit | 5a0727d99003e061b89e016c036947951d0743d2 (patch) | |
tree | 1e2a5d01ba299674e33b95a7d8d2348547bf0574 /libstdc++-v3/testsuite/26_numerics | |
parent | 4bd18faef21c51e02ab6228c50ee036b84c77c99 (diff) | |
download | gcc-5a0727d99003e061b89e016c036947951d0743d2.zip gcc-5a0727d99003e061b89e016c036947951d0743d2.tar.gz gcc-5a0727d99003e061b89e016c036947951d0743d2.tar.bz2 |
vector.cc: Shrink memory usage under simulator.
2013-01-14 Steve Ellcey <sellcey@mips.com>
* testsuite/libstdc++-v3/testsuite/23_containers/vector/profile/vector.cc:
Shrink memory usage under simulator.
* testsuite/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc: Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/28277-1.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/28277-2.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc:
Ditto.
* testsuite/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc:
Ditto.
From-SVN: r195177
Diffstat (limited to 'libstdc++-v3/testsuite/26_numerics')
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/valarray/28277.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc b/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc index 7e619c0..2712a5d 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc @@ -1,6 +1,6 @@ // 2006-07-15 Paolo Carlini <pcarlini@suse.de> -// Copyright (C) 2006, 2009 Free Software Foundation +// Copyright (C) 2006, 2009, 2013 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -17,6 +17,12 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +// { dg-options "-DMAX_SIZE=5000" { target simulator } } + +#ifndef MAX_SIZE +#define MAX_SIZE 5000000 +#endif + #include <valarray> #include <testsuite_hooks.h> @@ -25,7 +31,7 @@ void test01() { bool test __attribute__((unused)) = true; - const std::valarray<int> v1(1, 5000000); + const std::valarray<int> v1(1, MAX_SIZE); const std::valarray<int> v2 = v1.shift(1); VERIFY( v2.size() == v1.size() ); |