* testsuite/odr_violation2.cc (Ordering::operator()): Make

expression more complex.
This commit is contained in:
Ian Lance Taylor 2011-07-09 05:09:52 +00:00
parent 191f1a2dcc
commit 9c16daf1fc
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View 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) {