diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/templates.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/templates.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp index f49caff..541bdcb 100644 --- a/gdb/testsuite/gdb.cp/templates.exp +++ b/gdb/testsuite/gdb.cp/templates.exp @@ -157,6 +157,11 @@ proc test_template_breakpoints {} { "Breakpoint.*at.* file .*${testfile}.cc, line.*" \ "value method breakpoint" + set bp_location [gdb_get_line_number \ + "set breakpoint on a line with no real code"] + gdb_test "break ${testfile}.cc:${bp_location}" \ + "Breakpoint.*at.* file .*${testfile}.cc, line.*(2 locations).*" \ + "breakpoint on a line with no real code" delete_breakpoints } |