X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_program_example.c;h=22fe94a3f741f3854e79a227722baa7f419454e5;hb=679646fa6698429ad5e2b295e9a0d1db1ccd1e74;hp=69033680f1d7f0417943d48089c10415038ead5a;hpb=46e29dcf25ab953923080d71e1aa5492e82d926c;p=libfirm diff --git a/testprograms/oo_program_example.c b/testprograms/oo_program_example.c index 69033680f..22fe94a3f 100644 --- a/testprograms/oo_program_example.c +++ b/testprograms/oo_program_example.c @@ -120,7 +120,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 */