diff options
author | Keith Seitz <keiths@redhat.com> | 2009-11-11 23:33:51 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2009-11-11 23:33:51 +0000 |
commit | 40f0318e99b714619c029e788c8de3af1c286e14 (patch) | |
tree | 4dc6573e8846207b0ec7b7a0e4ce80c748df70cb /gdb/testsuite/gdb.cp/classes.cc | |
parent | a8acdf460377d5b5fba6df998d1a0ac320226128 (diff) | |
download | gdb-40f0318e99b714619c029e788c8de3af1c286e14.zip gdb-40f0318e99b714619c029e788c8de3af1c286e14.tar.gz gdb-40f0318e99b714619c029e788c8de3af1c286e14.tar.bz2 |
* gdb.cp/classes.cc (ByAnyOtherName): Add typedef and
use it instead of "Foo".
* gdb.cp/classes.exp (do_tests): Add a test to access
a method through a typedef'd class name.
Diffstat (limited to 'gdb/testsuite/gdb.cp/classes.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/classes.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/classes.cc b/gdb/testsuite/gdb.cp/classes.cc index 913627f..921ebc9 100644 --- a/gdb/testsuite/gdb.cp/classes.cc +++ b/gdb/testsuite/gdb.cp/classes.cc @@ -417,6 +417,8 @@ class Foo int times (int y); }; +typedef Foo ByAnyOtherName; + class Bar : public Base1, public Foo { public: int z; @@ -431,7 +433,7 @@ int Foo::st = 100; Foo::operator int() { return x; } -Foo foo(10, 11); +ByAnyOtherName foo(10, 11); Bar bar(20, 21, 22); class ClassWithEnum { |