aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/rtti2.cc
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2004-03-05 17:32:25 +0000
committerDavid Carlton <carlton@bactrian.org>2004-03-05 17:32:25 +0000
commit1198ecbe719975c4549f5cae42f1150e6f75a950 (patch)
tree13e0f1a14b80e5c26e9784eab568ecb7fc3e4d98 /gdb/testsuite/gdb.cp/rtti2.cc
parentbae25f1962ed5d93828900ab046d4f0de6898db9 (diff)
downloadgdb-1198ecbe719975c4549f5cae42f1150e6f75a950.zip
gdb-1198ecbe719975c4549f5cae42f1150e6f75a950.tar.gz
gdb-1198ecbe719975c4549f5cae42f1150e6f75a950.tar.bz2
2004-03-05 David Carlton <carlton@kealia.com>
* cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion bug. 2004-03-05 David Carlton <carlton@kealia.com> * gdb.cp/rtti.exp: Add 'print *obj3' test. * gdb.cp/rtti.h: Update copyright. (namespace n2::n3): New. * gdb.cp/rtti1.cc: (refer_to (n2::n3::C3 *)): New. (n2::n3::func3): New. (main): Call n2::n3::func3. * gdb.cp/rtti2.cc: Update copyright. (n2::create3): New.
Diffstat (limited to 'gdb/testsuite/gdb.cp/rtti2.cc')
-rw-r--r--gdb/testsuite/gdb.cp/rtti2.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/rtti2.cc b/gdb/testsuite/gdb.cp/rtti2.cc
index 8bb1ed6..353a1f8 100644
--- a/gdb/testsuite/gdb.cp/rtti2.cc
+++ b/gdb/testsuite/gdb.cp/rtti2.cc
@@ -1,6 +1,6 @@
/* Code to go along with tests in rtti.exp.
- Copyright 2003 Free Software Foundation, Inc.
+ Copyright 2003, 2004 Free Software Foundation, Inc.
Contributed by David Carlton <carlton@bactrian.org> and by Kealia,
Inc.
@@ -33,4 +33,8 @@ namespace n2 {
return new D2(0, 0);
}
+ n3::C3 *create3() {
+ return new n3::C3();
+ }
+
}