include/ChangeLog
[deliverable/binutils-gdb.git] / gold / testsuite / script_test_2.cc
index 6e7e000067a75f34b151e6f6be9a323b365a42e9..71045516920aa98a7196375f9159b82efed4c581 100644 (file)
@@ -35,6 +35,8 @@ extern char end_data[];
 extern char start_fill[];
 extern char end_fill[];
 extern char end_test_area[];
+extern char test_addr[];
+extern char test_addr_alias[];
 
 int
 main(int, char**)
@@ -51,7 +53,7 @@ main(int, char**)
   // Next the string from script_test_2a.o, after the subalign.
   for (int i = 16 + 7; i < 48; ++i)
     assert(start_test_area_1[i] == 0);
-  assert(strcmp(start_test_area_1 + 48, "test a") == 0);
+  assert(strcmp(start_test_area_1 + 48, "test aa") == 0);
 
   // Move four bytes forward to start_data.
   assert(reinterpret_cast<uintptr_t>(start_test_area_1 + 48 + 8 + 4)
@@ -66,4 +68,7 @@ main(int, char**)
   assert(end_fill == start_fill + 8);
 
   assert(end_test_area == end_fill);
+
+  assert(test_addr == start_test_area_1);
+  assert(test_addr_alias == test_addr);
 }
This page took 0.023692 seconds and 4 git commands to generate.