summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/gdb1355.cc
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-05-03 17:54:32 +0000
committerPaul Brook <paul@codesourcery.com>2006-05-03 17:54:32 +0000
commitcf0a608f24f6553cb90999ebc503ac08bf614d57 (patch)
tree6c3f1fda5837090acfbdd9c2d9318168e695a0ba /gdb/testsuite/gdb.cp/gdb1355.cc
parent082431422ac470715709b77c6f201eeb9ef1ccd7 (diff)
downloadgdb-cf0a608f24f6553cb90999ebc503ac08bf614d57.tar.gz
2006-05-03 Paul Brook <paul@codesourcery.com>gdb-csl-sourcerygxx-4_1-4
Daniel Jacobowitz <dan@codesourcery.com> * gdb/testsuite/gdb.cp/gdb1355.exp: Accept different spellings of integer types. * gdb/testsuite/gdb.cp/gdb1355.cc: Ensure all types are referenced. * gdb/testsuite/gdb.cp/hang2.C: Ditto. * gdb/testsuite/gdb.cp/m-data.cc: Ditto. * gdb/testsuite/gdb.cp/hang3.C: Ditto. * gdb/testsuite/gdb.cp/hang1.C: Ditto. * gdb/gdbtypes.c (rank_one_type): Check for plain char -> signed/ unsigned char. * gdb/testsuite/gdb.base/completion.exp: Accept "long" as a type. * gdb/testsuite/gdb.base/volatile.exp: Accept different spellings of integer types. * gdb/testsuite/gdb.base/constvars.c: Ensure all types are referenced. * gdb/testsuite/gdb.stabs/weird.exp: Return -1 instead of issuing error. * gdb/testsuite/gdb.base/advance.c: Add proper function prototype. * gdb/testsuite/gdb.base/ending-run.exp: Add case for ARM runtime. * gdb/testsuite/gdb.base/gdb1821.c: Ensure all types are referenced. * gdb/testsuite/gdb.base/ptype.exp: Accept different spellings of integer types. * gdb/testsuite/gdb.cp/inherit.exp: Cope with armcc vtable pointers. * gdb/testsuite/gdb.mi/mi2-var-child.exp: Accept different spellings of integer types. * gdb/testsuite/gdb.mi/mi-var-display.exp: Ditto. * gdb/testsuite/gdb.mi/mi2-var-display.exp: Ditto. * gdb/testsuite/gdb.mi/mi2-var-cmd.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.cp/gdb1355.cc')
-rw-r--r--gdb/testsuite/gdb.cp/gdb1355.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/gdb1355.cc b/gdb/testsuite/gdb.cp/gdb1355.cc
index a53ca20e4d5..51e625f1449 100644
--- a/gdb/testsuite/gdb.cp/gdb1355.cc
+++ b/gdb/testsuite/gdb.cp/gdb1355.cc
@@ -31,5 +31,6 @@ struct mystruct s1 =
int main ()
{
- return 0;
+ /* Reference s1 so that it is included. */
+ return s1.m_int - 117;
}