aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/filename.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/filename.cc')
-rw-r--r--gdb/testsuite/gdb.cp/filename.cc22
1 files changed, 21 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/filename.cc b/gdb/testsuite/gdb.cp/filename.cc
index 45edf4e..d33ef78 100644
--- a/gdb/testsuite/gdb.cp/filename.cc
+++ b/gdb/testsuite/gdb.cp/filename.cc
@@ -26,11 +26,31 @@ public:
}
void m() {
- /* stop here */
+ /* stop inside C */
}
};
+class D {
+public:
+ int includefile();
+
+ void m() {
+ /* stop inside D */
+ }
+};
+
+int D::includefile() {
+ return 24;
+}
+
int main() {
C c;
+ C* pc = &c;
c.m();
+
+ D d;
+ D* pd = &d;
+ d.m();
+
+ /* stop outside */
}