aboutsummaryrefslogtreecommitdiffstats
path: root/test/autowasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/autowasm.c')
-rw-r--r--test/autowasm.c13
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;
}