ChangeLog rotation
[deliverable/binutils-gdb.git] / gold / testsuite / odr_violation1.cc
CommitLineData
a55ce7fe 1#include <algorithm>
71ff8986 2#include "odr_header1.h"
a55ce7fe
ILT
3
4class Ordering {
5 public:
6 bool operator()(int a, int b) {
7 return a < b;
8 }
9};
10
11void SortAscending(int array[], int size) {
12 std::sort(array, array + size, Ordering());
13}
9691462b
ILT
14
15extern "C" int OverriddenCFunction(int i) __attribute__ ((weak));
16extern "C" int OverriddenCFunction(int i) {
17 return i;
18}
71ff8986
ILT
19
20// Instantiate the Derived vtable, without optimization.
21OdrBase* CreateOdrDerived1() {
22 return new OdrDerived;
23}
This page took 0.502286 seconds and 4 git commands to generate.