]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gold/testsuite/odr_violation1.cc
Imported binutils-2.20
[msp430-binutils.git] / gold / testsuite / odr_violation1.cc
diff --git a/gold/testsuite/odr_violation1.cc b/gold/testsuite/odr_violation1.cc
new file mode 100644 (file)
index 0000000..7f6f6d9
--- /dev/null
@@ -0,0 +1,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());
+}