U8 = new_type_primitive (new_id_from_chars("char", 4), mode_Bu);
/* An array containing unsigned 8 bit elements. */
U8array = new_type_array (new_id_from_chars("char_arr", 8), 1, U8);
- string_ptr = new_type_pointer (new_id_from_chars ("ptr_to_string", 13), U8array);
+ set_array_lower_bound_int(U8array, 0, 0);
+
+ string_ptr = new_type_pointer (new_id_from_chars ("ptr_to_string", 13), U8array, mode_P);
/* Make a global entity that represents the constant String. */
const_str = new_entity(get_glob_type(), new_id_from_str("constStr"), U8array);
/* Now we can mature the end block as all it's predecessors are known. */
mature_immBlock (get_irg_end_block(irg));
- finalize_cons (irg);
+ irg_finalize_cons (irg);
printf("Optimizing ...\n");
dead_node_elimination(irg);