From: Christian Schäfer Date: Mon, 31 Jul 2000 16:37:39 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=cbb5ee335095036658a7a67c039d6cb1ab5341a1;p=libfirm *** empty log message *** [r54] --- diff --git a/Changes b/Changes index ff0b3ecd1..1c94b71fb 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ 31.7.2000 Chris Fixed a bug, caused by the recursive use in type.h and entity.h. Deleted the _TYPE_TYPEDEF_ and inserted the _ENTITY_TYPEDEF_ instead. + Fixed a problem in if_while testprogram, so it now works. 20.7.2000 Goetz Fixed bug in optimize(). Returned Null instead n if diff --git a/testprograms/if_while_example.c b/testprograms/if_while_example.c index a25be7644..f702e4654 100644 --- a/testprograms/if_while_example.c +++ b/testprograms/if_while_example.c @@ -33,6 +33,7 @@ main(void) { ir_graph *irg; type_class *owner; + type_method *proc_main; entity *ent; ir_node *b, *x, *r, *t, *f; @@ -40,8 +41,14 @@ main(void) init_firm (); +#define METHODNAME "main" +#define NRARGS 0 +#define NRES 0 + + proc_main = new_type_method(id_from_str(METHODNAME, strlen(METHODNAME)), + NRARGS, NRES); owner = new_type_class (id_from_str ("IF_WHILE_EXAMPLE", 16)); - ent = new_entity ((type *)owner, id_from_str ("main", 4), NULL); + ent = new_entity ((type *)owner, id_from_str ("main", 4), (type *)proc_main); /* Generates start and end blocks and nodes and a first, initial block */ irg = new_ir_graph (ent, 4);