aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-08-26 21:11:08 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-08-26 21:11:08 +0000
commit5c07461a748143e1ad1931bd0f5054aabde9c306 (patch)
treea9be72f63b97a623dbaa1e8ec76e6b5f642cf24f /gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
parent3ced3da4a5e534cf6d35912dcd03766ac67da5ed (diff)
downloadbinutils-5c07461a748143e1ad1931bd0f5054aabde9c306.zip
binutils-5c07461a748143e1ad1931bd0f5054aabde9c306.tar.gz
binutils-5c07461a748143e1ad1931bd0f5054aabde9c306.tar.bz2
gdb/testsuite/
* gdb.mi/mi-inheritance-syntax-error.cc (A): Make `a' public. (C): Initialize `a'. * gdb.mi/mi-inheritance-syntax-error.exp (-data-evaluate-expression $path): Expect `a' as 5.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc')
-rw-r--r--gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
index 9cc0518..9f0ab05 100644
--- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
+++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
@@ -5,7 +5,8 @@
class A
{
- int a;
+ public:
+ int a;
};
class C : public A
@@ -13,6 +14,7 @@ class C : public A
public:
C()
{
+ a = 5;
};
void testLocation()
{