* testsuite/odr_violation2.cc (Ordering::operator()): Make
authorIan Lance Taylor <ian@airs.com>
Sat, 9 Jul 2011 05:09:52 +0000 (05:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 9 Jul 2011 05:09:52 +0000 (05:09 +0000)
expression more complex.

gold/ChangeLog
gold/testsuite/odr_violation2.cc

index cc5908f..c8e2125 100644 (file)
@@ -1,5 +1,10 @@
 2011-07-08  Ian Lance Taylor  <iant@google.com>
 
+       * testsuite/odr_violation2.cc (Ordering::operator()): Make
+       expression more complex.
+
+2011-07-08  Ian Lance Taylor  <iant@google.com>
+
        PR gold/11317
        * target-reloc.h (issue_undefined_symbol_error): New inline
        function, broken out of relocate_section.
index a159182..e3d30f3 100644 (file)
@@ -12,7 +12,7 @@ class Ordering {
 bool Ordering::operator()(int a, int b) {
   // Optimization makes this operator() a different size than the one
   // in odr_violation1.cc.
-  return a + 1 > b + 1;
+  return a + 12345 > b / 67;
 }
 
 void SortDescending(int array[], int size) {