aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/copy_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/testsuite/copy_test.cc')
-rw-r--r--gold/testsuite/copy_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/testsuite/copy_test.cc b/gold/testsuite/copy_test.cc
index 3ee8af9..1d843c1 100644
--- a/gold/testsuite/copy_test.cc
+++ b/gold/testsuite/copy_test.cc
@@ -31,6 +31,9 @@ extern char b;
// From copy_test_2.cc.
extern long long l;
+extern int ip; // protected visibility; may not be copied
+
+int* ipp = &ip;
int
main()
@@ -39,5 +42,6 @@ main()
assert(b == 1);
assert(l == 2);
assert((reinterpret_cast<uintptr_t>(&l) & 0x7) == 0);
+ assert(*ipp == 3);
return 0;
}