aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/gdb1355.cc
diff options
context:
space:
mode:
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 a53ca20..51e625f 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;
}