summaryrefslogtreecommitdiff
path: root/testcase/2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcase/2.c')
-rw-r--r--testcase/2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testcase/2.c b/testcase/2.c
index 84efea1..812f033 100644
--- a/testcase/2.c
+++ b/testcase/2.c
@@ -1,3 +1,5 @@
+#include "i.h"
+
extern int global;
extern void hello(int);
@@ -10,6 +12,8 @@ void tst_pc16(void)
#endif
#if defined (__sparc__)
+void tst_wdisp(void);
+
void tst_wdisp(void)
{
printf("R_SPARC_DISP22: pass\n");
@@ -22,9 +26,12 @@ int test(int argc, char **argv)
global = 1; //inter-module data access
printf("In test() global = %d\n", global);
hello(2); //inter-module call
+
+ return 0;
}
int my_main(int argc, char **argv)
{
exit(0);
+ return 0;
}