diff options
Diffstat (limited to 'testcase/2.c')
-rw-r--r-- | testcase/2.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testcase/2.c b/testcase/2.c new file mode 100644 index 0000000..a63c1c7 --- /dev/null +++ b/testcase/2.c @@ -0,0 +1,14 @@ +extern int global; +extern void hello(int); + +int test(int argc, char **argv) +{ + global = 1; //inter-module data access + printf("In test() global = %d\n", global); + hello(2); //inter-module call +} + +int my_main(int argc, char **argv) +{ + exit(0); +} |