]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/testsuite/copy_test_relro_1.cc
Fix compile errors with GCC 4.2.
[thirdparty/binutils-gdb.git] / gold / testsuite / copy_test_relro_1.cc
index c5f280b476c11ba7362d8545ac710a925c4b78c6..3628214a13c069a2ff7d582b5444b882e044e26d 100644 (file)
 // MA 02110-1301, USA.
 
 extern int a;
-extern int* const p = &a;
 
-extern const int b[] = { 100, 200, 300, 400 };
+extern int* const p;
+extern const int b[];
+extern const int c;
+extern const int* const q;
 
-extern const int c = 500;
+int* const p = &a;
 
-extern const int* const q = &c;
+const int b[] = { 100, 200, 300, 400 };
+
+const int c = 500;
+
+const int* const q = &c;