aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/odr_violation1.cc
blob: 7f6f6d935b5c55c1d3ae307976999d4f6457528e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <algorithm>

class Ordering {
 public:
  bool operator()(int a, int b) {
    return a < b;
  }
};

void SortAscending(int array[], int size) {
  std::sort(array, array + size, Ordering());
}