aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-09 18:05:43 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-09 18:05:43 +0000
commit721ea635afd84626c185cd4b1f4a2a28c97fbf3a (patch)
tree24d19c64ed5dbb46378c15725090af6f6cc9bfce /gold
parent1e5d2fb127950dc92a01fe2bbbd12a219bf2286c (diff)
downloadgdb-721ea635afd84626c185cd4b1f4a2a28c97fbf3a.zip
gdb-721ea635afd84626c185cd4b1f4a2a28c97fbf3a.tar.gz
gdb-721ea635afd84626c185cd4b1f4a2a28c97fbf3a.tar.bz2
Add prototype to gold tests.
2010-04-09 H.J. Lu <hongjiu.lu@intel.com> * testsuite/plugin_common_test_1.c (foo): Add prototype. * testsuite/plugin_common_test_2.c (foo): Likewise.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/testsuite/plugin_common_test_1.c2
-rw-r--r--gold/testsuite/plugin_common_test_2.c4
3 files changed, 10 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index e9b79d4..f668ead 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/plugin_common_test_1.c (foo): Add prototype.
+ * testsuite/plugin_common_test_2.c (foo): Likewise.
+
2010-04-08 Doug Kwan <dougkwan@google.com>
* merge.cc (Output_merge_data::set_final_data_size): Handle empty
diff --git a/gold/testsuite/plugin_common_test_1.c b/gold/testsuite/plugin_common_test_1.c
index cf9ca2f..262c298 100644
--- a/gold/testsuite/plugin_common_test_1.c
+++ b/gold/testsuite/plugin_common_test_1.c
@@ -32,6 +32,8 @@ extern int c3;
int c4;
int c5 = 50;
+extern void foo (void);
+
int
main (int argc __attribute__ ((unused)), char** argv __attribute__ ((unused)))
{
diff --git a/gold/testsuite/plugin_common_test_2.c b/gold/testsuite/plugin_common_test_2.c
index 149fd45..54139ce 100644
--- a/gold/testsuite/plugin_common_test_2.c
+++ b/gold/testsuite/plugin_common_test_2.c
@@ -32,8 +32,10 @@ int c3;
int c4 = 40;
int c5;
+extern void foo (void);
+
void
-foo ()
+foo (void)
{
c1 = 10;
c2 = 20;