Change objfile::partial_symtabs to be a unique_ptr
[deliverable/binutils-gdb.git] / gold / testsuite / copy_test.cc
index 856511d51e658ee3f7cd37ec50e6f02112280001..70c97601216c505cf1e02579d264a7f5c7cc5d95 100644 (file)
@@ -1,6 +1,6 @@
 // copy_test.cc -- test copy relocs for gold
 
-// Copyright (C) 2008-2014 Free Software Foundation, Inc.
+// Copyright (C) 2008-2019 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -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;
 }
This page took 0.025281 seconds and 4 git commands to generate.