Correct dict_hash to our most recent version.
[deliverable/binutils-gdb.git] / gold / testsuite / odr_violation2.cc
CommitLineData
a55ce7fe
ILT
1#include <algorithm>
2
3class Ordering {
4 public:
5 bool operator()(int a, int b) {
6 // We need the "+ 1" here to force this operator() to be a
7 // different size than the one in odr_violation1.cc.
8 return a + 1 > b + 1;
9 }
10};
11
12void SortDescending(int array[], int size) {
13 std::sort(array, array + size, Ordering());
14}
9691462b
ILT
15
16// This is weak in odr_violation1.cc.
17extern "C" int OverriddenCFunction(int i) {
18 return i * i;
19}
20// This is inline in debug_msg.cc, which makes it a weak symbol too.
21int SometimesInlineFunction(int i) {
22 return i * i;
23}
This page took 0.136973 seconds and 4 git commands to generate.