diff options
author | bloodstalker <thabogre@gmail.com> | 2018-08-11 14:14:19 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-08-11 14:14:19 +0000 |
commit | f0e0441eb92e456c614482219dd645910cc4d768 (patch) | |
tree | 815cc41c255a4629ee07a6a487e480074c13a288 /test | |
parent | update (diff) | |
download | faultreiber-f0e0441eb92e456c614482219dd645910cc4d768.tar.gz faultreiber-f0e0441eb92e456c614482219dd645910cc4d768.zip |
update
Diffstat (limited to '')
-rw-r--r-- | test/autowasm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/autowasm.c b/test/autowasm.c index 2e978ce..460856d 100644 --- a/test/autowasm.c +++ b/test/autowasm.c @@ -63,6 +63,19 @@ int main (int argc, char** argv) { printf("rl_initial:%d\n", W_Memory_Section_container->entries->resizable_limit->initial); printf("rl_maximum:%d\n", W_Memory_Section_container->entries->resizable_limit->maximum); + if (W_Global_Section_container == NULL) printf("global section doesnt exist.\n"); + + printf("export_section_id:%d\n", W_Export_Section_container->id); + printf("export_section_payloadlength:%d\n", W_Export_Section_container->payloadlength); + printf("entry count:%d\n", W_Export_Section_container->count); + + for (int i = 0; i < W_Export_Section_container->count; ++i) { + printf("field_len:%d\n", W_Export_Section_container->entries[i]->field_len); + printf("field_str:%s\n", W_Export_Section_container->entries[i]->field_str); + printf("kind:%d\n", W_Export_Section_container->entries[i]->kind); + printf("index:%d\n", W_Export_Section_container->entries[i]->index); + } + release_all(); return 0; } |