diff options
author | bloodstalker <thabogre@gmail.com> | 2018-06-26 10:36:55 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-06-26 10:36:55 +0000 |
commit | 26e2a879bdefafee3bff0a41e1167cbf29b3ab3f (patch) | |
tree | 7107b6666e8f39c00bf34abc70eb47926789e5be /test/linker/file1.c | |
parent | Initial commit (diff) | |
download | dwasm-26e2a879bdefafee3bff0a41e1167cbf29b3ab3f.tar.gz dwasm-26e2a879bdefafee3bff0a41e1167cbf29b3ab3f.zip |
first commit
Diffstat (limited to '')
-rw-r--r-- | test/linker/file1.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/linker/file1.c b/test/linker/file1.c new file mode 100644 index 0000000..233eaad --- /dev/null +++ b/test/linker/file1.c @@ -0,0 +1,25 @@ +#include <stdio.h> +#include <inttypes.h> +#if 1 +void print(void) { + printf("external symbol"); +} +#endif + +#define CODE_SECTION_1_0 "constant_1_0" +#define CODE_SECTION_1_1 "constant_1_1" +#define CODE_SECTION_1_2 "constant_1_2" +#define CODE_SECTION_1_3 "constant_1_3" +#define CODE_SECTION_1_4 "constant_1_4" + +int g_int_1_0 = 10; +int g_int_1_1 = 11; + +int dummy_f_1_0(int n) { + if (n >= 1) return dummy_f_1_0(n-1) * n; + else return 1; +} + +int dymmy_f_1_1(int n) { + return n*2; +} |