X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Farray-heap_example.c;h=c22621229cf1db30e5062c33ec4506de8b1b70f8;hb=8e8fbe5556cfeeb18427f44dda1a66fa98939e1c;hp=6acb446faa5dabb664479eeb91632d7453a4a527;hpb=df83e37827032795585d3b25776c465870672901;p=libfirm diff --git a/testprograms/array-heap_example.c b/testprograms/array-heap_example.c index 6acb446fa..c22621229 100644 --- a/testprograms/array-heap_example.c +++ b/testprograms/array-heap_example.c @@ -82,9 +82,9 @@ main(void) /* first build procedure main */ owner = get_glob_type(); - proc_main = new_type_method(id_from_str("main", 4), 0, 1); + proc_main = new_type_method(id_from_str("ARRAY-HEAP_EXAMPLE_main", 23), 0, 1); set_method_res_type(proc_main, 0, (type *)prim_t_int); - proc_main_e = new_entity ((type*)owner, id_from_str ("main", 4), (type *)proc_main); + proc_main_e = new_entity ((type*)owner, id_from_str ("ARRAY-HEAP_EXAMPLE_main", 23), (type *)proc_main); main_irg = new_ir_graph (proc_main_e, 4); /* make type information for the array and set the bounds */