diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-23 22:02:16 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-23 22:02:16 +0000 |
commit | afe99ae092b92f88c93dbf4b139557e998d938be (patch) | |
tree | 24d1acd68bd5dd8fda37f01625e9818bdf61991c /libcxx/test/std/algorithms/alg.sorting | |
parent | a11d322f0d5530a4da67aa77ad1137c63f874288 (diff) | |
download | bcm5719-llvm-afe99ae092b92f88c93dbf4b139557e998d938be.tar.gz bcm5719-llvm-afe99ae092b92f88c93dbf4b139557e998d938be.zip |
[libcxx] [test] D27015: Fix MSVC warning C4018 "signed/unsigned mismatch", part 3/12.
Change unsigned to int in parameters.
llvm-svn: 287823
Diffstat (limited to 'libcxx/test/std/algorithms/alg.sorting')
21 files changed, 29 insertions, 29 deletions
diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/make_heap.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/make_heap.pass.cpp index 51b912768f3..9da9356b0be 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/make_heap.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/make_heap.pass.cpp @@ -17,7 +17,7 @@ #include <algorithm> #include <cassert> -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap.pass.cpp index 823985df6ca..252fc758cb1 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap.pass.cpp @@ -17,7 +17,7 @@ #include <algorithm> #include <cassert> -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap_comp.pass.cpp index 1db4428a1c1..0bfad61961e 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/pop_heap_comp.pass.cpp @@ -29,7 +29,7 @@ struct indirect_less #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap.pass.cpp index 0fc50a81207..d82896d6a91 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap.pass.cpp @@ -18,7 +18,7 @@ #include <algorithm> #include <cassert> -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap_comp.pass.cpp index 217217b38ee..5d2985cc07f 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/push_heap_comp.pass.cpp @@ -30,7 +30,7 @@ struct indirect_less #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap.pass.cpp index 4a08f111e6d..c6eaa8ccec8 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap.pass.cpp @@ -17,7 +17,7 @@ #include <algorithm> #include <cassert> -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap_comp.pass.cpp index 7d3e2d57015..1c072c5a12c 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/sort_heap_comp.pass.cpp @@ -29,7 +29,7 @@ struct indirect_less #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES -void test(unsigned N) +void test(int N) { int* ia = new int [N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element.pass.cpp index 3ecc250a9c8..e9cd086ab13 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element.pass.cpp @@ -35,7 +35,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element_comp.pass.cpp index fc88268aa84..2e8e0c30d94 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/max_element_comp.pass.cpp @@ -36,7 +36,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element.pass.cpp index 45dd54b1ee4..c4188422085 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element.pass.cpp @@ -35,7 +35,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element_comp.pass.cpp index 94ef482ddbd..0f5c80c0d25 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/min_element_comp.pass.cpp @@ -36,7 +36,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element.pass.cpp index ef5474091db..fc97778347b 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element.pass.cpp @@ -41,7 +41,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp index 3a0c2dbbba1..a39512f2e63 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp @@ -44,7 +44,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp index dc5564eb3fc..560bc902b48 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp @@ -19,7 +19,7 @@ #include <cassert> void -test_one(unsigned N, unsigned M) +test_one(int N, int M) { assert(N != 0); assert(M < N); @@ -34,7 +34,7 @@ test_one(unsigned N, unsigned M) } void -test(unsigned N) +test(int N) { test_one(N, 0); test_one(N, 1); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp index 49343ed41e3..fd5b7012d52 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp @@ -33,7 +33,7 @@ struct indirect_less #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES void -test_one(unsigned N, unsigned M) +test_one(int N, int M) { assert(N != 0); assert(M < N); @@ -48,7 +48,7 @@ test_one(unsigned N, unsigned M) } void -test(unsigned N) +test(int N) { test_one(N, 0); test_one(N, 1); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp index 5f298fde7b3..1d4ca9925a8 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp @@ -24,7 +24,7 @@ template <class Iter> void -test_larger_sorts(unsigned N, unsigned M) +test_larger_sorts(int N, int M) { int* input = new int[N]; int* output = new int[M]; @@ -43,7 +43,7 @@ test_larger_sorts(unsigned N, unsigned M) template <class Iter> void -test_larger_sorts(unsigned N) +test_larger_sorts(int N) { test_larger_sorts<Iter>(N, 0); test_larger_sorts<Iter>(N, 1); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp index df8fb9eacac..460ea4c0827 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp @@ -27,7 +27,7 @@ template <class Iter> void -test_larger_sorts(unsigned N, unsigned M) +test_larger_sorts(int N, int M) { int* input = new int[N]; int* output = new int[M]; @@ -47,7 +47,7 @@ test_larger_sorts(unsigned N, unsigned M) template <class Iter> void -test_larger_sorts(unsigned N) +test_larger_sorts(int N) { test_larger_sorts<Iter>(N, 0); test_larger_sorts<Iter>(N, 1); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort.pass.cpp index 62458eca930..0d32ba898b8 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort.pass.cpp @@ -19,7 +19,7 @@ #include <cassert> void -test_larger_sorts(unsigned N, unsigned M) +test_larger_sorts(int N, int M) { assert(N != 0); assert(N >= M); @@ -37,7 +37,7 @@ test_larger_sorts(unsigned N, unsigned M) } void -test_larger_sorts(unsigned N) +test_larger_sorts(int N) { test_larger_sorts(N, 0); test_larger_sorts(N, 1); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp index d7981e664c6..a4fe1cc5e7c 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp @@ -33,7 +33,7 @@ struct indirect_less #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES void -test_larger_sorts(unsigned N, unsigned M) +test_larger_sorts(int N, int M) { assert(N != 0); assert(N >= M); @@ -51,7 +51,7 @@ test_larger_sorts(unsigned N, unsigned M) } void -test_larger_sorts(unsigned N) +test_larger_sorts(int N) { test_larger_sorts(N, 0); test_larger_sorts(N, 1); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/sort.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/sort.pass.cpp index 2ea697a63b2..ebb876709b5 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/sort.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/sort.pass.cpp @@ -72,7 +72,7 @@ test_sort_() } void -test_larger_sorts(unsigned N, unsigned M) +test_larger_sorts(int N, int M) { assert(N != 0); assert(M != 0); @@ -112,7 +112,7 @@ test_larger_sorts(unsigned N, unsigned M) } void -test_larger_sorts(unsigned N) +test_larger_sorts(int N) { test_larger_sorts(N, 1); test_larger_sorts(N, 2); diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp index 5faa1682135..2721c9c01ec 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp @@ -72,7 +72,7 @@ test_sort_() } void -test_larger_sorts(unsigned N, unsigned M) +test_larger_sorts(int N, int M) { assert(N != 0); assert(M != 0); @@ -112,7 +112,7 @@ test_larger_sorts(unsigned N, unsigned M) } void -test_larger_sorts(unsigned N) +test_larger_sorts(int N) { test_larger_sorts(N, 1); test_larger_sorts(N, 2); |