summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/m-static.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/m-static.cc')
-rw-r--r--gdb/testsuite/gdb.cp/m-static.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/m-static.cc b/gdb/testsuite/gdb.cp/m-static.cc
index 6d08cb063ea..9dae5ee81d7 100644
--- a/gdb/testsuite/gdb.cp/m-static.cc
+++ b/gdb/testsuite/gdb.cp/m-static.cc
@@ -68,5 +68,6 @@ int main()
gnu_obj_3<long> test3(greek);
gnu_obj_4 test4;
- return 0; // breakpoint: constructs-done
+ test4.dummy = 0;
+ return test4.dummy; // breakpoint: constructs-done
}