* gch1280.exp: Enhance test case.

This commit is contained in:
Wilfried Moser 1996-09-05 08:55:32 +00:00
parent 5819f35dcf
commit 7cdda733d5
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu Sep 5 01:54:42 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
* gch1280.exp: Enhance test case.
Wed Sep 4 07:30:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
* gch1272.{ch,exp}, gch1280.{ch,exp}, pr-9946.{ch,exp}:

View File

@ -70,4 +70,7 @@ if ![set_lang_chill] then {
send "next\n" ; expect -re "$prompt $"
# check too many array elements
gdb_test {set var v_x := [1,2,3,4,5]} {Too many array elements}
gdb_test {set var $i := m_x[(3): 22, 25]} {Too many array elements}
send "set var \$i := m_x\[\(2\): 22, 25\]\n" ; expect -re "$prompt $"
gdb_test {print $i} { = \[\(1\): 0, \(2\): 22, \(3\): 25\]}
}