X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=test.c;h=7149026862087a8f63577916ffd361e8b89b08ef;hp=2247eac4b7f42e6c463a01918e822d2adf45915e;hb=c3449e207b5e1e85ecea55975163a4dc6b986962;hpb=b752043cfbb49243ca3727dbfc9be5b614a8c9c2 diff --git a/test.c b/test.c index 2247eac..7149026 100644 --- a/test.c +++ b/test.c @@ -7,10 +7,13 @@ static oberon_type_t boolean = { "BOOLEAN", OBERON_TYPE_BOOLEAN, sizeof(int) }; static const char source[] = "MODULE Test;" "VAR" + " k : INTEGER;" " i : INTEGER;" " b : BOOLEAN;" "BEGIN" - " i := 10;" + " k := 10;" + " i := k;" + " b := TRUE;" "END Test." ; @@ -24,5 +27,6 @@ main(int argc, char ** argv) oberon_register_global_type(ctx, &integer); oberon_register_global_type(ctx, &boolean); mod = oberon_compile_module(ctx, source); + oberon_destroy_context(ctx); return 0; }