use it instead of "Foo".
* gdb.cp/classes.exp (do_tests): Add a test to access
a method through a typedef'd class name.
int times (int y);
};
+typedef Foo ByAnyOtherName;
+
class Bar : public Base1, public Foo {
public:
int z;
Foo::operator int() { return x; }
-Foo foo(10, 11);
+ByAnyOtherName foo(10, 11);
Bar bar(20, 21, 22);
class ClassWithEnum {
gdb_test "print base1::Base1" "<.*Base1.*>" "print ctor of typedef class"
gdb_test "print base1::~Base1" "<.*~Base1(\\(\\))?>" \
"print dtor of typedef class"
+
+ gdb_test "list ByAnyOtherName::times" ".*int Foo::times.*"
}
do_tests