diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/method-call-in-c.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/method-call-in-c.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/method-call-in-c.exp b/gdb/testsuite/gdb.cp/method-call-in-c.exp index 6cbdda0..b0201ad 100644 --- a/gdb/testsuite/gdb.cp/method-call-in-c.exp +++ b/gdb/testsuite/gdb.cp/method-call-in-c.exp @@ -45,7 +45,7 @@ foreach_with_prefix lang { c++ c } { gdb_test "print foo.func (b, f)" " = ${result}" incr result - set result [expr $result + 3] + set result [expr {$result + 3}] gdb_test "print foo += b" \ " = \\((?:struct )?foo_type &\\) @${hex}: \\\{var = ${result}\\\}" |