X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=test.c;h=0837de4ef28f6ba05ca3dbe8f4c191e95fd0caa5;hb=390a7e053165954865bc013a7c7057982c206453;hp=7149026862087a8f63577916ffd361e8b89b08ef;hpb=c3449e207b5e1e85ecea55975163a4dc6b986962;p=dsw-obn.git diff --git a/test.c b/test.c index 7149026..0837de4 100644 --- a/test.c +++ b/test.c @@ -1,9 +1,6 @@ #include "oberon.h" #include -static oberon_type_t integer = { "INTEGER", OBERON_TYPE_INTEGER, sizeof(int) }; -static oberon_type_t boolean = { "BOOLEAN", OBERON_TYPE_BOOLEAN, sizeof(int) }; - static const char source[] = "MODULE Test;" "VAR" @@ -11,9 +8,9 @@ static const char source[] = " i : INTEGER;" " b : BOOLEAN;" "BEGIN" - " k := 10;" + " k := -10 + 1;" " i := k;" - " b := TRUE;" + " b := ~TRUE OR FALSE;" "END Test." ; @@ -24,8 +21,6 @@ int main(int argc, char ** argv) { ctx = oberon_create_context(); - oberon_register_global_type(ctx, &integer); - oberon_register_global_type(ctx, &boolean); mod = oberon_compile_module(ctx, source); oberon_destroy_context(ctx); return 0;