mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
9691462bab
* gold/testsuite/debug_msg.cc: Likewise. * gold/testsuite/odr_violation1.cc * gold/testsuite/odr_violation2.cc
18 lines
325 B
C++
18 lines
325 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());
|
|
}
|
|
|
|
extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
|
|
extern "C" int OverriddenCFunction(int i) {
|
|
return i;
|
|
}
|