aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.multi/inferior-specific-bp-2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.multi/inferior-specific-bp-2.c b/gdb/testsuite/gdb.multi/inferior-specific-bp-2.c
index bde6fbf..3a45c21 100644
--- a/gdb/testsuite/gdb.multi/inferior-specific-bp-2.c
+++ b/gdb/testsuite/gdb.multi/inferior-specific-bp-2.c
@@ -30,7 +30,8 @@ main (void)
{
int ret = baz ();
stop_breakpt ();
- return ret;
+ /* We have to call bar here, otherwise it might be optimized away. */
+ return ret + bar ();
}
static int