mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-12 06:26:17 +00:00
a55ce7febf
ODR violations, add test case.
13 lines
200 B
C++
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());
|
|
}
|