[gdb/testsuite] Kfail gdb.cp/ambiguous.exp FAILs for PR26602
Kfail these FAILs as caused by PR exp/26602: ... FAIL: gdb.cp/ambiguous.exp: print x.x FAIL: gdb.cp/ambiguous.exp: print n.x FAIL: gdb.cp/ambiguous.exp: print j.x FAIL: gdb.cp/ambiguous.exp: print jva1.x FAIL: gdb.cp/ambiguous.exp: print jva2.x FAIL: gdb.cp/ambiguous.exp: print (A1)j FAIL: gdb.cp/ambiguous.exp: print (A1)jva1 ... Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-09-11 Tom de Vries <tdevries@suse.de> PR exp/26602 * gdb.cp/ambiguous.exp: Add KFAILs for PR26602.
This commit is contained in:
parent
8d58ed37f1
commit
ad570dd76c
@ -1,3 +1,8 @@
|
|||||||
|
2020-09-11 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
PR exp/26602
|
||||||
|
* gdb.cp/ambiguous.exp: Add KFAILs for PR26602.
|
||||||
|
|
||||||
2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
|
2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
|
||||||
|
|
||||||
* gdb.base/bp-cmds-execution-x-script.exp: Remove a stale comment.
|
* gdb.base/bp-cmds-execution-x-script.exp: Remove a stale comment.
|
||||||
|
@ -74,6 +74,7 @@ send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $"
|
|||||||
# right times.
|
# right times.
|
||||||
|
|
||||||
# X is derived from A1 and A2; both A1 and A2 have a member 'x'
|
# X is derived from A1 and A2; both A1 and A2 have a member 'x'
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print x.x\n"
|
send_gdb "print x.x\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: x ambiguous; using X::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
-re "warning: x ambiguous; using X::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
||||||
@ -89,6 +90,7 @@ gdb_expect {
|
|||||||
|
|
||||||
# N is derived from A1 and A2, but not immediately -- two steps
|
# N is derived from A1 and A2, but not immediately -- two steps
|
||||||
# up in the hierarchy. Both A1 and A2 have a member 'x'.
|
# up in the hierarchy. Both A1 and A2 have a member 'x'.
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print n.x\n"
|
send_gdb "print n.x\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: x ambiguous; using N::M::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
-re "warning: x ambiguous; using N::M::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
||||||
@ -102,6 +104,7 @@ gdb_expect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# J is derived from A1 twice. A1 has a member x.
|
# J is derived from A1 twice. A1 has a member x.
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print j.x\n"
|
send_gdb "print j.x\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: x ambiguous; using J::L::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
-re "warning: x ambiguous; using J::L::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
||||||
@ -129,6 +132,7 @@ gdb_expect {
|
|||||||
# JVA1 is derived from A1; A1 occurs as a virtual base in two
|
# JVA1 is derived from A1; A1 occurs as a virtual base in two
|
||||||
# ancestors, and as a non-virtual immediate base. Ambiguity must
|
# ancestors, and as a non-virtual immediate base. Ambiguity must
|
||||||
# be reported.
|
# be reported.
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print jva1.x\n"
|
send_gdb "print jva1.x\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: x ambiguous; using JVA1::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
-re "warning: x ambiguous; using JVA1::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
||||||
@ -144,6 +148,7 @@ gdb_expect {
|
|||||||
# JVA2 is derived from A1 & A2; A1 occurs as a virtual base in two
|
# JVA2 is derived from A1 & A2; A1 occurs as a virtual base in two
|
||||||
# ancestors, and A2 is a non-virtual immediate base. Ambiguity must
|
# ancestors, and A2 is a non-virtual immediate base. Ambiguity must
|
||||||
# be reported as A1 and A2 both have a member 'x'.
|
# be reported as A1 and A2 both have a member 'x'.
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print jva2.x\n"
|
send_gdb "print jva2.x\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: x ambiguous; using JVA2::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
-re "warning: x ambiguous; using JVA2::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
|
||||||
@ -173,6 +178,7 @@ gdb_expect {
|
|||||||
|
|
||||||
# J is derived from A1 twice; report ambiguity if a J is
|
# J is derived from A1 twice; report ambiguity if a J is
|
||||||
# cast to an A1.
|
# cast to an A1.
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print (A1)j\n"
|
send_gdb "print (A1)j\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: A1 ambiguous; using J::L::A1. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" {
|
-re "warning: A1 ambiguous; using J::L::A1. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" {
|
||||||
@ -199,6 +205,7 @@ gdb_expect {
|
|||||||
|
|
||||||
# JVA1 is derived from A1; A1 is a virtual base and also a
|
# JVA1 is derived from A1; A1 is a virtual base and also a
|
||||||
# non-virtual base. Must report ambiguity if a JVA1 is cast to an A1.
|
# non-virtual base. Must report ambiguity if a JVA1 is cast to an A1.
|
||||||
|
setup_kfail gdb/26602 *-*-*
|
||||||
send_gdb "print (A1)jva1\n"
|
send_gdb "print (A1)jva1\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re "warning: A1 ambiguous; using JVA1::A1. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" {
|
-re "warning: A1 ambiguous; using JVA1::A1. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \{x = \[-\]*\[0-9\]*, y = \[-\]*\[0-9\]*\}\r\n$gdb_prompt $" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user