- /* generate two constant pointers to string constants */
- /* this simulates two global variables, a and b point to these variables */
- a = new_Const (mode_P, tarval_P_from_str ("VAR_A"));
- b = new_Const (mode_P, tarval_P_from_str ("VAR_B"));
+ /* create two global variables, a and b point to these variables */
+ symbol.entity_p = new_entity(get_glob_type(),new_id_from_chars("VAR_A",6),prim_t_int);
+ a = new_SymConst(mode_P, symbol, symconst_addr_ent);