darling-gdb/gold/testsuite/odr_violation1.cc
2007-11-14 01:03:01 +00:00

13 lines
200 B
C++

#include <algorithm>
class Ordering {
public:
bool operator()(int a, int b) {
return a < b;
}
};
void SortAscending(int array[], int size) {
std::sort(array, array + size, Ordering());
}