]> Git Repo - binutils.git/blob - gold/testsuite/odr_violation2.cc
* README: Rewrite, with some notes on unsupported features.
[binutils.git] / gold / testsuite / odr_violation2.cc
1 #include <algorithm>
2
3 class 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
12 void SortDescending(int array[], int size) {
13   std::sort(array, array + size, Ordering());
14 }
This page took 0.026092 seconds and 4 git commands to generate.