From: Michael Beck Date: Tue, 23 Aug 2005 18:13:51 +0000 (+0000) Subject: Set array border to 0, needed for fixed add_compound_ent_value() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ab2b18cf4ccedb539b92a1aa0b367aa3f81f367b;p=libfirm Set array border to 0, needed for fixed add_compound_ent_value() [r6480] --- 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. */