X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/blobdiff_plain/5eff53a4ac5d9d9563d5e6fdc073914d6ea88b49..ffab3c67282e6210cc032f0e6d72f1cab04728b6:/tests/test-version.c diff --git a/tests/test-version.c b/tests/test-version.c index ab4f93c..e3e4a16 100644 --- a/tests/test-version.c +++ b/tests/test-version.c @@ -2,6 +2,10 @@ #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include int @@ -16,5 +20,10 @@ main(void) sprintf(buf, "%d.%d.%d", major, minor, patch); assert(strcmp(buf, yaml_get_version_string()) == 0); + /* Print structure sizes. */ + printf("sizeof(token) = %d\n", sizeof(yaml_token_t)); + printf("sizeof(event) = %d\n", sizeof(yaml_event_t)); + printf("sizeof(parser) = %d\n", sizeof(yaml_parser_t)); + return 0; }