Fixed doxygen comments
[libfirm] / testprograms / if_while_example.c
index ad423a9..cc3587d 100644 (file)
@@ -1,9 +1,9 @@
 /* (C) 1998 - 2000 by Universitaet Karlsruhe
-** All rights reserved.
-**
-** Authors: Christian Schaefer, Goetz Lindenmaier
-**
-** testprogram.
+* All rights reserved.
+*
+* Authors: Christian Schaefer, Goetz Lindenmaier
+*
+* testprogram.
 */
 
 # include <stdio.h>
 # include "firm.h"
 
 /**
-***  This file constructs the ir for the following pseudo-program:
-***
-***  main() {
-***    int a = 0;         // pos 0
-***    int b = 1;         // pos 1
-***    int h;             // pos 2
-***
-***    if (0 == 0)
-***      { a = 2; }
-***
-***    while (0 == 0) loop {
-***      h = a;
-***      a = b;
-***      b = h;
-***    }
-***
-***    return a-b;
-***  }
+*  This file constructs the ir for the following pseudo-program:
+*
+*  main() {
+*    int a = 0;         // pos 0
+*    int b = 1;         // pos 1
+*    int h;             // pos 2
+*
+*    if (0 == 0)
+*      { a = 2; }
+*
+*    while (0 == 0) loop {
+*      h = a;
+*      a = b;
+*      b = h;
+*    }
+*
+*    return a-b;
+*  }
 **/
 
 int
@@ -67,6 +67,7 @@ main(void)
   set_method_res_type(proc_main, 0, prim_t_int);
   owner = new_type_class (id_from_str ("IF_WHILE_EXAMPLE", 16));
   ent = new_entity (owner, id_from_str ("main", 4), proc_main);
+  get_entity_ld_name(ent);
 
   /* Generates start and end blocks and nodes and a first, initial block */
   irg = new_ir_graph (ent, 4);