diff options
author | Doug Evans <dje@google.com> | 2009-04-29 22:45:11 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-04-29 22:45:11 +0000 |
commit | 9ab4e7442222be784ac8ffbb33631f7172acf7ad (patch) | |
tree | 10767ccea5521f748a14d7fb0f6afedfdf2c9ebf /gdb/testsuite/gdb.cp/mb-inline.h | |
parent | c5af0dad33ff96dbb404710539f01b011cff0453 (diff) | |
download | gdb-9ab4e7442222be784ac8ffbb33631f7172acf7ad.zip gdb-9ab4e7442222be784ac8ffbb33631f7172acf7ad.tar.gz gdb-9ab4e7442222be784ac8ffbb33631f7172acf7ad.tar.bz2 |
* gdb.cp/mb-ctor.exp: Add multi-line source statement test.
* gdb.cp/mb-ctor.cc: Ditto.
* gdb.cp/mb-inline.exp: Add multi-line source statement test.
* gdb.cp/mb-inline.h (multi_line_foo): New function.
* gdb.cp/mb-inline1.cc: Call it.
* gdb.cp/mb-inline2.cc: Ditto.
* gdb.cp/mb-templates.exp: Add multi-line source statement test.
* gdb.cp/mb-templates.cc (multi_line_foo): New template.
Diffstat (limited to 'gdb/testsuite/gdb.cp/mb-inline.h')
-rw-r--r-- | gdb/testsuite/gdb.cp/mb-inline.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/mb-inline.h b/gdb/testsuite/gdb.cp/mb-inline.h index 8ff5649..8de8b92 100644 --- a/gdb/testsuite/gdb.cp/mb-inline.h +++ b/gdb/testsuite/gdb.cp/mb-inline.h @@ -26,5 +26,12 @@ foo (int i) return i; // set breakpoint here } +static int +multi_line_foo (int i) +{ + return // set multi-line breakpoint here + i; +} + extern int afn (); extern int bfn (); |