X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fcall_str_example.c;h=76b2693f760fd71c2125a1d204ea1adb9522bc76;hb=2c95d635ef7dc3a9c04b983f14496167dbec3608;hp=876f375023489fdd1dc16783c2843b4afb0a79fe;hpb=2cd57a8b25d2cf8c34a1ee05bc2198a57ffdc0fc;p=libfirm diff --git a/testprograms/call_str_example.c b/testprograms/call_str_example.c index 876f37502..76b2693f7 100644 --- a/testprograms/call_str_example.c +++ b/testprograms/call_str_example.c @@ -51,7 +51,9 @@ int main(int argc, char **argv) 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);