diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-01 19:05:41 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-01 19:05:41 +0000 |
commit | d8d937a01d12a49b7b7b41400062f255341be9df (patch) | |
tree | 660d1b51df244b7375428064dc199e98a91e8409 /libstdc++-v3/testsuite/25_algorithms | |
parent | 691c0f2fc548a74a75b11d1c76403e2fe89b9997 (diff) | |
download | ppe42-gcc-d8d937a01d12a49b7b7b41400062f255341be9df.tar.gz ppe42-gcc-d8d937a01d12a49b7b7b41400062f255341be9df.zip |
2008-01-01 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34095
* include/parallel/multiway_merge.h (multiway_merge_bubble,
parallel_multiway_merge): Together with ::operator new use
::operator delete.
* include/parallel/losertree.h (LoserTree<>::~LoserTree): Likewise.
* include/parallel/quicksort.h (parallel_sort_qs_divide): Likewise.
* include/parallel/random_shuffle.h (parallel_random_shuffle_drs_pu,
sequential_random_shuffle): Likewise.
* include/parallel/tree.h (_M_not_sorted_bulk_insertion_construction):
Likewise.
* include/parallel/multiway_mergesort.h (parallel_sort_mwms_pu,
parallel_sort_mwms): Likewise.
* include/parallel/partial_sum.h (parallel_partial_sum_linear):
Likewise.
* testsuite/25_algorithms/sort/34095.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/25_algorithms')
-rw-r--r-- | libstdc++-v3/testsuite/25_algorithms/sort/34095.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/25_algorithms/sort/34095.cc b/libstdc++-v3/testsuite/25_algorithms/sort/34095.cc new file mode 100644 index 00000000000..46e906b5bc5 --- /dev/null +++ b/libstdc++-v3/testsuite/25_algorithms/sort/34095.cc @@ -0,0 +1,33 @@ +// Copyright (C) 2008 Free Software Foundation, Inc. +// +// 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 +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +// USA. + +#include <vector> +#include <algorithm> + +// libstdc++/34095 +void test01() +{ + std::vector<std::vector<int> > v(20000); + std::sort(v.begin(), v.end()); +} + +int main() +{ + test01(); + return 0; +} |