2012-03-26 19:18:29 +00:00
|
|
|
#include <algorithm>
|
2014-09-12 22:14:23 +00:00
|
|
|
#include "odr_header1.h"
|
2012-03-26 19:18:29 +00:00
|
|
|
|
|
|
|
class Ordering {
|
|
|
|
public:
|
|
|
|
bool operator()(int a, int b) {
|
|
|
|
return a < b;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
void SortAscending(int array[], int size) {
|
|
|
|
std::sort(array, array + size, Ordering());
|
|
|
|
}
|
2014-09-12 22:14:23 +00:00
|
|
|
|
|
|
|
extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
|
|
|
|
extern "C" int OverriddenCFunction(int i) {
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Instantiate the Derived vtable, without optimization.
|
|
|
|
OdrBase* CreateOdrDerived1() {
|
|
|
|
return new OdrDerived;
|
|
|
|
}
|