Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] delete gdb.cp/ambiguous.exp ?
@ 2014-08-18 23:23 Doug Evans
  2014-08-19  6:58 ` Joel Brobecker
  2014-08-19 16:49 ` Pedro Alves
  0 siblings, 2 replies; 8+ messages in thread
From: Doug Evans @ 2014-08-18 23:23 UTC (permalink / raw)
  To: gdb-patches

Along the lines of dead code removal ...

What should we do with this testcase?

The messages it is looking for from gdb do not exist,
but the whole thing is not run for gcc anyway.

I ask because if we choose to not delete the testcase
then I will need to add a similar escape for clang.

# tests relating to ambiguous class members
# Written by Satish Pai <pai@apollo.hp.com> 1997-07-28

...

if { [test_compiler_info gcc-*] } then { continue }

...

# print out various class objects' members.  The values aren't
# important, just check that the warning is emitted at the
# right times. 

# X is derived from A1 and A2; both A1 and A2 have a member 'x'
send_gdb "print x.x\n"
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 $" {
       pass "print x.x"
   }
   -re "warning: x ambiguous; using X::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" {
       pass "print x.x"
   }
   -re ".*$gdb_prompt $" { fail "print x.x" }
   timeout { fail "(timeout) print x.x" }
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-22 20:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-18 23:23 [RFC] delete gdb.cp/ambiguous.exp ? Doug Evans
2014-08-19  6:58 ` Joel Brobecker
2014-08-19 16:49 ` Pedro Alves
2014-08-19 17:25   ` Doug Evans
2014-08-19 17:50     ` Pedro Alves
2014-08-19 20:10       ` Doug Evans
2014-08-19 21:47         ` Pedro Alves
2014-08-22 20:07           ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox