* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / gold / testsuite / odr_violation1.cc
blob8b37cea7e2da36ab86b262440198f4440d469756
1 #include <algorithm>
2 #include "odr_header1.h"
4 class Ordering {
5 public:
6 bool operator()(int a, int b) {
7 return a < b;
9 };
11 void SortAscending(int array[], int size) {
12 std::sort(array, array + size, Ordering());
15 extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
16 extern "C" int OverriddenCFunction(int i) {
17 return i;
20 // Instantiate the Derived vtable, without optimization.
21 OdrBase* CreateOdrDerived1() {
22 return new OdrDerived;