aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/method2.cc
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-03-28 00:32:41 +0000
committerPedro Alves <palves@redhat.com>2007-03-28 00:32:41 +0000
commit297561aca9c6ac975b345ae037fefb547da56a2a (patch)
treef42bc80bb04d1277ab6f2256dddb7b664c181035 /gdb/testsuite/gdb.cp/method2.cc
parent53c5240fe15861d08db96684b1a06c4b4ecb1958 (diff)
downloadgdb-297561aca9c6ac975b345ae037fefb547da56a2a.zip
gdb-297561aca9c6ac975b345ae037fefb547da56a2a.tar.gz
gdb-297561aca9c6ac975b345ae037fefb547da56a2a.tar.bz2
* gdb.cp/method2.cc: New test.
* gdb.cp/method2.exp: New test. * gdb.cp/Makefile.in (EXECUTABLES): Add method2.
Diffstat (limited to 'gdb/testsuite/gdb.cp/method2.cc')
-rw-r--r--gdb/testsuite/gdb.cp/method2.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/method2.cc b/gdb/testsuite/gdb.cp/method2.cc
new file mode 100644
index 0000000..e6cb809
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/method2.cc
@@ -0,0 +1,27 @@
+struct A
+{
+ void method ();
+ void method (int a);
+ void method (A* a);
+};
+
+void
+A::method ()
+{
+}
+
+void
+A::method (int a)
+{
+}
+
+void
+A::method (A* a)
+{
+}
+
+int
+main (int argc, char** argv)
+{
+ return 0;
+}