]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/miscexprs.exp
import gdb-19990422 snapshot
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / miscexprs.exp
index 9ea278a570fc8d69b8d57f27a2fa5d5bbf535ba7..d42e5abbfbb02e2fe0bab5e6bc82bf5d12570d2d 100644 (file)
@@ -114,18 +114,24 @@ gdb_expect {
 
 send_gdb "print &sbig.s\[0\]\n"
 gdb_expect {
+    -re ".\[0-9\]* = \\(short \\*\\) $hex.*$gdb_prompt $" {
+        pass "print value of &sbig.s\[0\]"
+    }
     -re ".\[0-9\]* = \\(short int \\*\\) $hex.*$gdb_prompt $" {
         pass "print value of &sbig.s\[0\]"
-      }
+    }
     -re ".*$gdb_prompt $" { fail "print value of &sbig.s\[0\]" }
     timeout           { fail "(timeout) print value of &sbig.s\[0\]" }
   }
 
 send_gdb "print &lbig.l\[0\]\n"
 gdb_expect {
+    -re ".\[0-9\]* = \\(long \\*\\) $hex.*$gdb_prompt $" {
+        pass "print value of &lbig.l\[0\]"
+    }
     -re ".\[0-9\]* = \\(long int \\*\\) $hex.*$gdb_prompt $" {
         pass "print value of &lbig.l\[0\]"
-      }
+    }
     -re ".*$gdb_prompt $" { fail "print value of &lbig.l\[0\]" }
     timeout           { fail "(timeout) print value of &lbig.l\[0\]" }
   }