X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gold%2Ftestsuite%2Fodr_violation1.cc;fp=gold%2Ftestsuite%2Fodr_violation1.cc;h=7f6f6d935b5c55c1d3ae307976999d4f6457528e;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/gold/testsuite/odr_violation1.cc b/gold/testsuite/odr_violation1.cc new file mode 100644 index 0000000..7f6f6d9 --- /dev/null +++ b/gold/testsuite/odr_violation1.cc @@ -0,0 +1,12 @@ +#include + +class Ordering { + public: + bool operator()(int a, int b) { + return a < b; + } +}; + +void SortAscending(int array[], int size) { + std::sort(array, array + size, Ordering()); +}