diff options
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/testsuite/odr_violation2.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 7bc3893..97044b6 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,10 @@ 2020-05-01 H.J. Lu <hongjiu.lu@intel.com> + * testsuite/odr_violation2.cc (Ordering::operator()): Make + expression even more complex. + +2020-05-01 H.J. Lu <hongjiu.lu@intel.com> + * testsuite/ver_test_pr16504.sh: Updated. 2020-05-01 H.J. Lu <hongjiu.lu@intel.com> diff --git a/gold/testsuite/odr_violation2.cc b/gold/testsuite/odr_violation2.cc index aa9868f..35dd454 100644 --- a/gold/testsuite/odr_violation2.cc +++ b/gold/testsuite/odr_violation2.cc @@ -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 + 12345 > b / 67; + return (a * 30 + b + 12345) > b / 67; } void SortDescending(int array[], int size) { |