X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_inline_example.c;h=793eec4c4fc5bb2426399912d0bdc30fe47998d2;hb=963b305a192fbff27ef32fd96e25be74a863857c;hp=f2b7fd668a03ee1bdf5374eb1635a01162f122a1;hpb=7e18980cefe532647559e1bbdb890f297c8d8131;p=libfirm diff --git a/testprograms/oo_inline_example.c b/testprograms/oo_inline_example.c index f2b7fd668..793eec4c4 100644 --- a/testprograms/oo_inline_example.c +++ b/testprograms/oo_inline_example.c @@ -122,7 +122,7 @@ main(void) /* There is only one block in main, it contains the allocation and the calls. */ /* Allocate the defined object and generate the type information. */ symconst_symbol sym = { class_prima }; - obj_size = new_SymConst(sym, symconst_size); + obj_size = new_SymConst(sym, symconst_type_size); obj_o = new_Alloc(get_store(), obj_size, class_prima, heap_alloc); set_store(new_Proj(obj_o, mode_M, 0)); /* make the changed memory visible */ obj_o = new_Proj(obj_o, mode_P, 2); /* remember the pointer to the object */