aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/hang3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/hang3.cc')
-rw-r--r--gdb/testsuite/gdb.cp/hang3.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/hang3.cc b/gdb/testsuite/gdb.cp/hang3.cc
index 92c82fa..b08decc 100644
--- a/gdb/testsuite/gdb.cp/hang3.cc
+++ b/gdb/testsuite/gdb.cp/hang3.cc
@@ -2,3 +2,8 @@
const struct B *const_B_ptr;
int var_in_hang3 = 42;
+
+int dummy3 (void)
+{
+ return var_in_hang3;
+}