From eb04344d7ee9708849deade28da3b8e49676d051 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 9 Apr 2010 18:05:42 +0000 Subject: [PATCH] Add prototype to gold tests. 2010-04-09 H.J. Lu * testsuite/plugin_common_test_1.c (foo): Add prototype. * testsuite/plugin_common_test_2.c (foo): Likewise. --- gold/ChangeLog | 5 +++++ gold/testsuite/plugin_common_test_1.c | 2 ++ gold/testsuite/plugin_common_test_2.c | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index e9b79d4b4..f668eadcc 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-04-09 H.J. Lu + + * testsuite/plugin_common_test_1.c (foo): Add prototype. + * testsuite/plugin_common_test_2.c (foo): Likewise. + 2010-04-08 Doug Kwan * 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 cf9ca2f78..262c29859 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 149fd456d..54139ceb9 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; -- 2.11.4.GIT