1 // RUN: %clangxx -O2 %s -o %t
9 static int compare_ints(const void *a
, const void *b
) {
10 return *(const int *)b
- *(const int *)a
;
14 std::vector
<int> nums(100000);
18 std::vector
<int> to_qsort
= nums
;
19 qsort(to_qsort
.data(), to_qsort
.size(), sizeof(to_qsort
[0]), &compare_ints
);
21 std::sort(nums
.begin(), nums
.end());
23 assert(nums
== to_qsort
);