From ab2b18cf4ccedb539b92a1aa0b367aa3f81f367b Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 23 Aug 2005 18:13:51 +0000 Subject: [PATCH] Set array border to 0, needed for fixed add_compound_ent_value() [r6480] --- testprograms/call_str_example.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- 2.20.1