Make reference for yesterdays changes: SymConst to start block
[libfirm] / testprograms / inheritance_example.c
index c823b9f..a2e1a2e 100644 (file)
@@ -1,9 +1,9 @@
 /* Copyright (C) 2000 by Universitaet Karlsruhe
-** All rights reserved.
-**
-** Author: Goetz Lindenmaier
-**
-** testprogram.
+* All rights reserved.
+*
+* Author: Goetz Lindenmaier
+*
+* testprogram.
 */
 
 # include <stdio.h>
 # include "firm.h"
 
 /**
-***  This file constructs type information for the following pseudo-program.
-***  The procedure code is not constructed.
-***
-***  interface I {
-***    void m1 (void);
-***  }
-***
-***  class C implements I {
-***    void m1 (void) {return};
-***    void m2 (int)  {return 0};
-***  }
-***
-***  class D {
-***    int b;
-***  }
-***
-***  class E extends C, D {
-***    void m2 (int) {return 1};
-***    int a;
-***  }
-***
+*  This file constructs type information for the following pseudo-program.
+*  The procedure code is not constructed.
+*
+*  interface I {
+*    void m1 (void);
+*  }
+*
+*  class C implements I {
+*    void m1 (void) {return};
+*    void m2 (int)  {return 0};
+*  }
+*
+*  class D {
+*    int b;
+*  }
+*
+*  class E extends C, D {
+*    void m2 (int) {return 1};
+*    int a;
+*  }
+*
 **/
 
 int main(int argc, char **argv)
@@ -45,10 +45,10 @@ int main(int argc, char **argv)
   type  *intt;
   entity *i_m1e, *c_m1e, *c_m2e, *e_m2e, *d_be, *e_ae;   /*        e names entities    */
 
-  printf("\nCreating type information...\n");
+  printf("\nCreating type information for INHERITANCE_EXAMPLE ...\n");
 
   /** init library */
-  init_firm ();
+  init_firm (NULL);
 
   /** make idents for all used identifiers in the program. */
   ii  = id_from_str("i",  strlen("i"));
@@ -63,7 +63,7 @@ int main(int argc, char **argv)
 
   /** make the type information needed */
   /* Language defined types */
-  intt = new_type_primitive(inti, mode_I);
+  intt = new_type_primitive(inti, mode_Iu);
   /* Program defined types */
   it = new_type_class(ii);           /* The fact that this is an interface is
                                        of no interest.  It's just a class without