X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fcall_str_example.c;h=76b2693f760fd71c2125a1d204ea1adb9522bc76;hb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;hp=c35c3a745e9297f35c08c51667ab53d5bce4a550;hpb=7e18980cefe532647559e1bbdb890f297c8d8131;p=libfirm diff --git a/testprograms/call_str_example.c b/testprograms/call_str_example.c index c35c3a745..76b2693f7 100644 --- a/testprograms/call_str_example.c +++ b/testprograms/call_str_example.c @@ -51,6 +51,8 @@ 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); + 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. */