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.
This commit is contained in:
H.J. Lu 2010-04-09 18:05:43 +00:00
parent 1e5d2fb127
commit 721ea635af
3 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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)))
{

View File

@ -32,8 +32,10 @@ int c3;
int c4 = 40;
int c5;
extern void foo (void);
void
foo ()
foo (void)
{
c1 = 10;
c2 = 20;