summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 11:12:15 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 11:12:15 +0000
commitc46e4fef3d41e367eff211b7793812a4f4e57adb (patch)
tree7df230b0adb68511c140d85e15d7f3c67bca2d33 /libstdc++-v3/testsuite
parenta000165c1777e77d8f6387ce8cf93e975728c395 (diff)
downloadgcc-c46e4fef3d41e367eff211b7793812a4f4e57adb.tar.gz
Shrink std::random_shuffle test to pass on simulators
2015-10-16 Aurelio Remonda <aurelio.remonda@tallertechnologies.com> * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable N from const int N = 200000 to const unsigned int N = 10000. Delete useless fill_ascending function call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228876 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc b/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc
index e854c38a209..9ce44ac09fa 100644
--- a/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc
@@ -34,8 +34,8 @@ using __gnu_test::rvalstruct;
typedef test_container<rvalstruct, random_access_iterator_wrapper> Container;
-const int N = 200000;
-int A[N];
+const unsigned int N = 10000;
+int A[N]; // This is made global because we don't want it on the stack
void fill_ascending()
{
@@ -70,7 +70,6 @@ test02()
{
bool test __attribute__((unused)) = true;
- fill_ascending();
rvalstruct rv[10] = {1,2,3,4,5,6,7,8,9,10};
int result[10] = {10,1,2,3,4,5,6,7,8,9};
Container con(rv, rv + 10);