test_print_accept "print lower(ulong)" "0"
test_print_accept "print lower(m_set)" "e1"
test_print_accept "print lower(m_set_range)" "e2"
+ test_print_accept "print lower(m_numbered_set)" "n2"
test_print_accept "print lower(m_char_range)" "'A'"
test_print_accept "print lower(m_bool_range)" "FALSE"
test_print_accept "print lower(m_long_range)" "255"
test_print_accept "print lower(v_ulong)" "0"
test_print_accept "print lower(v_set)" "e1"
test_print_accept "print lower(v_set_range)" "e2"
+ test_print_accept "print lower(v_numbered_set)" "n2"
test_print_accept "print lower(v_char_range)" "'A'"
test_print_accept "print lower(v_bool_range)" "FALSE"
test_print_accept "print lower(v_long_range)" "255"
}
test_print_accept "print lower(m_set_arr)" "e1"
test_print_accept "print lower(m_set_range_arr)" "e2"
+ test_print_accept "print lower(m_numbered_set_arr)" "n2"
test_print_accept "print lower(m_char_range_arr)" "'A'"
test_print_accept "print lower(m_bool_range_arr)" "FALSE"
test_print_accept "print lower(m_long_range_arr)" "255"
}
test_print_accept "print lower(v_set_arr)" "e1"
test_print_accept "print lower(v_set_range_arr)" "e2"
+ test_print_accept "print lower(v_numbered_set_arr)" "n2"
test_print_accept "print lower(v_char_range_arr)" "'A'"
test_print_accept "print lower(v_bool_range_arr)" "FALSE"
test_print_accept "print lower(v_long_range_arr)" "255"
}
test_print_accept "print upper(m_set)" "e6"
test_print_accept "print upper(m_set_range)" "e5"
+ test_print_accept "print upper(m_numbered_set)" "n5"
test_print_accept "print upper(m_char_range)" "'Z'"
test_print_accept "print upper(m_bool_range)" "FALSE"
test_print_accept "print upper(m_long_range)" "3211"
}
test_print_accept "print upper(v_set)" "e6"
test_print_accept "print upper(v_set_range)" "e5"
+ test_print_accept "print upper(v_numbered_set)" "n5"
test_print_accept "print upper(v_char_range)" "'Z'"
test_print_accept "print upper(v_bool_range)" "FALSE"
test_print_accept "print upper(v_long_range)" "3211"
}
test_print_accept "print upper(m_set_arr)" "e6"
test_print_accept "print upper(m_set_range_arr)" "e5"
+ test_print_accept "print upper(m_numbered_set_arr)" "n5"
test_print_accept "print upper(m_char_range_arr)" "'Z'"
test_print_accept "print upper(m_bool_range_arr)" "FALSE"
test_print_accept "print upper(m_long_range_arr)" "3211"
}
test_print_accept "print upper(v_set_arr)" "e6"
test_print_accept "print upper(v_set_range_arr)" "e5"
+ test_print_accept "print upper(v_numbered_set_arr)" "n5"
test_print_accept "print upper(v_char_range_arr)" "'Z'"
test_print_accept "print upper(v_bool_range_arr)" "FALSE"
test_print_accept "print upper(v_long_range_arr)" "3211"
test_print_accept "print size(m_struct)" "36"
}
test_print_accept "print size(m_set)" "1"
+ test_print_accept "print size(m_numbered_set)" "1"
test_print_accept "print size(m_char_range)" "1"
test_print_accept "print size(m_range_arr)" "17"
test_print_accept "print size(m_chars)" "20"
test_print_accept "print size(v_struct)" "36"
}
test_print_accept "print size(v_set)" "1"
+ test_print_accept "print size(v_numbered_set)" "1"
test_print_accept "print size(v_char_range)" "1"
test_print_accept "print size(v_range_arr)" "17"
test_print_accept "print size(v_chars)" "20"
test_print_accept "print num(v_ulong)" "4444"
test_print_accept "print num(v_set)" "2"
test_print_accept "print num(v_set_range)" "2"
+ test_print_accept "print num(v_numbered_set)" "35"
test_print_accept "print num(v_char_range)" "71"
test_print_accept "print num(v_long_range)" "1000"
test_print_accept "print num(v_range)" "23"
--- /dev/null
+# Copyright (C) 1992, 1994 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+# Please email any bugs, comments, and/or additions to this file to:
+# bug-gdb@prep.ai.mit.edu
+
+# This file was written by Per Bothner. (bothner@cygnus.com)
+
+if $tracelevel then {
+ strace $tracelevel
+}
+
+if [skip_chill_tests] then { continue }
+
+set testfile2 "extstruct-grt"
+set srcfile2 ${srcdir}/$subdir/${testfile2}.ch
+if { [compile "${srcfile2} -g -c"] != "" } {
+ perror "Couldn't compile ${srcfile2}"
+ return -1
+}
+
+set testfile "extstruct"
+set srcfile ${srcdir}/$subdir/${testfile}.ch
+set binfile ${objdir}/${subdir}/${testfile}.exe
+if { [compile "${srcfile} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
+ perror "Couldn't compile ${srcfile}"
+ return -1
+}
+
+proc do_tests {} {
+ global prms_id bug_id subdir objdir srcdir binfile prompt
+
+ set prms_id 0
+ set bug_id 0
+
+ # Start with a fresh gdb.
+
+ gdb_exit
+ gdb_start
+ gdb_reinitialize_dir $srcdir/$subdir
+ gdb_load $binfile
+
+ send "set language chill\n" ; expect -re "$prompt $"
+
+ send "set var \$i := m_x\[\]\n" ; expect -re "$prompt $"
+ gdb_test "print \$i" { = \[.i: 0, .ar: \[\(5:6\): \[.f1: 0, .f2: NULL, .f3: \[\(2:3\): 0\]\]\]\]}
+
+ send "set var \$j := m_y\[\]\n" ; expect -re "$prompt $"
+ gdb_test "print \$j" { = \[.i: 0, .ar: \[\(7:8\): \[\(9:10\): \[.f1: 0, .f2: NULL, .f3: \[\(2:3\): 0\]\]\]\]\]}
+}
+
+do_tests