mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-09 15:05:27 +08:00
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. From-SVN: r228876
This commit is contained in:
parent
6d244704f7
commit
6b6254db8a
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2015-10-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user