From: H.J. Lu Date: Fri, 9 Apr 2010 18:05:43 +0000 (+0000) Subject: Add prototype to gold tests. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=721ea635afd84626c185cd4b1f4a2a28c97fbf3a;p=binutils-gdb.git 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. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index e9b79d4b462..f668eadcc58 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 cf9ca2f78ee..262c298597d 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 149fd456d80..54139ceb9c5 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;