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.
This commit is contained in:
David Carlton 2004-03-05 17:32:25 +00:00
parent bae25f1962
commit 1198ecbe71
7 changed files with 55 additions and 4 deletions

View file

@ -63,16 +63,33 @@ void refer_to (n2::C2 *obj)
// Do nothing.
}
void refer_to (n2::n3::C3 *obj)
{
// Do nothing.
}
namespace n2
{
void func ()
{
C2 *obj = create2 ();
refer_to (obj); // func-constructs-done
refer_to (obj); // func-constructs-done
return;
}
namespace n3
{
void func3 ()
{
C3 *obj3 = create3 ();
refer_to (obj3); // func3-constructs-done
return;
}
}
}
int main()
@ -84,6 +101,7 @@ int main()
C2 *e2 = create2();
n2::func(); // main-constructs-done
n2::n3::func3();
return 0;
}