aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/printmethod.cc
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-12-07 23:07:54 +0000
committerDaniel Jacobowitz <drow@false.org>2005-12-07 23:07:54 +0000
commit55b3918466201c8e9fd7ee97975fd7b5a2ee74ee (patch)
tree32d4fd5cbfd415ae204094d4cf974e2692c5d724 /gdb/testsuite/gdb.cp/printmethod.cc
parent7b6792f929b2a51885204813c3f32ba8231ba980 (diff)
downloadbinutils-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.zip
binutils-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.tar.gz
binutils-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.tar.bz2
gdb/
* valops.c (value_struct_elt): Clarify error message. gdb/testsuite/ 2005-12-07 Christophe Lyon <christophe.lyon@st.com> * gdb.cp/printmethod.cc (main): Call virt and nonvirt, to force code generation for these functions. * gdb.cp/printmethod.exp: Expect "&A::nonvirt()" instead of an error message.
Diffstat (limited to 'gdb/testsuite/gdb.cp/printmethod.cc')
-rw-r--r--gdb/testsuite/gdb.cp/printmethod.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/printmethod.cc b/gdb/testsuite/gdb.cp/printmethod.cc
index 6afb491..b4d573d 100644
--- a/gdb/testsuite/gdb.cp/printmethod.cc
+++ b/gdb/testsuite/gdb.cp/printmethod.cc
@@ -1,6 +1,6 @@
/* This test script is part of GDB, the GNU debugger.
- Copyright 2002, 2004,
+ Copyright 2002, 2004, 2005
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -29,6 +29,8 @@ public:
int main()
{
A *theA = new A;
+ theA->virt ();
+ theA->nonvirt ();
return 0; // breakpoint: constructs-done
}