Retro68/binutils/gold/testsuite/odr_violation1.cc

13 lines
200 B
C++
Raw Normal View History

2012-03-26 19:18:29 +00:00
#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());
}