diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-04-09 18:05:43 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-04-09 18:05:43 +0000 |
commit | 721ea635afd84626c185cd4b1f4a2a28c97fbf3a (patch) | |
tree | 24d19c64ed5dbb46378c15725090af6f6cc9bfce /gold/testsuite | |
parent | 1e5d2fb127950dc92a01fe2bbbd12a219bf2286c (diff) | |
download | gdb-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/testsuite')
-rw-r--r-- | gold/testsuite/plugin_common_test_1.c | 2 | ||||
-rw-r--r-- | gold/testsuite/plugin_common_test_2.c | 4 |
2 files changed, 5 insertions, 1 deletions
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; |