diff options
Diffstat (limited to 'gold')
-rw-r--r-- | gold/testsuite/common_test_1.c | 16 | ||||
-rw-r--r-- | gold/testsuite/common_test_1_v1.c | 16 | ||||
-rw-r--r-- | gold/testsuite/common_test_1_v2.c | 16 | ||||
-rw-r--r-- | gold/testsuite/script_test_2.cc | 8 |
4 files changed, 28 insertions, 28 deletions
diff --git a/gold/testsuite/common_test_1.c b/gold/testsuite/common_test_1.c index 148b875..59d7bc3 100644 --- a/gold/testsuite/common_test_1.c +++ b/gold/testsuite/common_test_1.c @@ -53,14 +53,14 @@ int a9 __attribute__ ((aligned (1 << 5))); int main (int argc __attribute__ ((unused)), char** argv __attribute__ ((unused))) { - assert (c5 > c4); - assert (c4 > c3); - assert (c3 > c2); - assert (c2 > c1); - assert (c1 > c6); - assert (c6 > c7); - assert (c7 > c8); - assert (c8 > c9); + assert (&c5[0] > &c4[0]); + assert (&c4[0] > &c3[0]); + assert (&c3[0] > &c2[0]); + assert (&c2[0] > &c1[0]); + assert (&c1[0] > &c6[0]); + assert (&c6[0] > &c7[0]); + assert (&c7[0] > &c8[0]); + assert (&c8[0] > &c9[0]); assert (&a1 < &a2); assert (&a2 < &a3); diff --git a/gold/testsuite/common_test_1_v1.c b/gold/testsuite/common_test_1_v1.c index 99a5308..ea52286 100644 --- a/gold/testsuite/common_test_1_v1.c +++ b/gold/testsuite/common_test_1_v1.c @@ -57,14 +57,14 @@ int main (int argc __attribute__ ((unused)), char** argv __attribute__ ((unused))) { /* These tests are deliberately incorrect. */ - assert (c5 < c4); - assert (c4 < c3); - assert (c3 < c2); - assert (c2 < c1); - assert (c1 < c6); - assert (c6 < c7); - assert (c7 < c8); - assert (c8 < c9); + assert (&c5[0] < &c4[0]); + assert (&c4[0] < &c3[0]); + assert (&c3[0] < &c2[0]); + assert (&c2[0] < &c1[0]); + assert (&c1[0] < &c6[0]); + assert (&c6[0] < &c7[0]); + assert (&c7[0] < &c8[0]); + assert (&c8[0] < &c9[0]); assert (&a1 > &a2); assert (&a2 > &a3); diff --git a/gold/testsuite/common_test_1_v2.c b/gold/testsuite/common_test_1_v2.c index a049036..0b11627 100644 --- a/gold/testsuite/common_test_1_v2.c +++ b/gold/testsuite/common_test_1_v2.c @@ -55,14 +55,14 @@ main (int argc __attribute__ ((unused)), char** argv __attribute__ ((unused))) { // After an incremental update, all guarantees about ordering // are null. - assert (c5 != c4); - assert (c4 != c3); - assert (c3 != c2); - assert (c2 != c1); - assert (c1 != c6); - assert (c6 != c7); - assert (c7 != c8); - assert (c8 != c9); + assert (&c5[0] != &c4[0]); + assert (&c4[0] != &c3[0]); + assert (&c3[0] != &c2[0]); + assert (&c2[0] != &c1[0]); + assert (&c1[0] != &c6[0]); + assert (&c6[0] != &c7[0]); + assert (&c7[0] != &c8[0]); + assert (&c8[0] != &c9[0]); assert (&a1 != &a2); assert (&a2 != &a3); diff --git a/gold/testsuite/script_test_2.cc b/gold/testsuite/script_test_2.cc index 9025e63f..48b79d2 100644 --- a/gold/testsuite/script_test_2.cc +++ b/gold/testsuite/script_test_2.cc @@ -61,12 +61,12 @@ main(int, char**) assert(end_data == start_data + 15); // Check that FILL works as expected. - assert(start_fill == end_data); + assert(&start_fill[0] == &end_data[0]); assert(memcmp(start_fill, "\x12\x34\x56\x78\x12\x34\x56\0", 8) == 0); assert(end_fill == start_fill + 8); - assert(end_test_area == end_fill); + assert(&end_test_area[0] == &end_fill[0]); - assert(test_addr == start_test_area_1); - assert(test_addr_alias == test_addr); + assert(&test_addr[0] == &start_test_area_1[0]); + assert(&test_addr_alias[0] == &test_addr[0]); } |