import gdb-1999-07-19 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.c++ / derivation.exp
index 80baf75d2e40513b637c35172f0d6115281d4d0e..657b16662da0ac6f579c85aa1af8f6c93aab628a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1998 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999 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
@@ -265,6 +265,10 @@ gdb_expect {
 
 send_gdb "print g_instance.a\n"
 gdb_expect {
+    -re "warning.*$gdb_prompt $" {
+       # The compiler doesn't think this is ambiguous.
+       fail "print value of g_instance.a"
+    }
     -re ".\[0-9\]* = 15.*$gdb_prompt $" {
         pass "print value of g_instance.a"
       }
@@ -274,6 +278,10 @@ gdb_expect {
 
 send_gdb "print g_instance.b\n"
 gdb_expect {
+    -re "warning.*$gdb_prompt $" {
+       # The compiler doesn't think this is ambiguous.
+       fail "print value of g_instance.b"
+    }
     -re ".\[0-9\]* = 16.*$gdb_prompt $" {
         pass "print value of g_instance.b"
       }
@@ -283,6 +291,10 @@ gdb_expect {
 
 send_gdb "print g_instance.c\n"
 gdb_expect {
+    -re "warning.*$gdb_prompt $" {
+       # The compiler doesn't think this is ambiguous.
+       fail "print value of g_instance.c"
+    }
     -re ".\[0-9\]* = 17.*$gdb_prompt $" {
         pass "print value of g_instance.c"
       }
This page took 0.024716 seconds and 4 git commands to generate.