aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/koenig.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/koenig.cc')
-rw-r--r--gdb/testsuite/gdb.cp/koenig.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/koenig.cc b/gdb/testsuite/gdb.cp/koenig.cc
index c91dbf9..e2190f1 100644
--- a/gdb/testsuite/gdb.cp/koenig.cc
+++ b/gdb/testsuite/gdb.cp/koenig.cc
@@ -226,6 +226,16 @@ namespace P {
//------------
+class R {
+ public:
+ int rfoo(){ return 31; }
+ int rbar(){
+ return 1; // marker1
+ }
+};
+
+//------------
+
int
main ()
{
@@ -299,6 +309,10 @@ main ()
++q;
+ R r;
+ r.rbar();
+ r.rfoo();
+
return first (0, c) + foo (eo) +
foo (eo, eo) + foo (eo, eo, 1) +
foo (fo, eo) + foo (1 ,fo, eo) +