aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parent3ced3da4a5e534cf6d35912dcd03766ac67da5ed (diff)
downloadgdb-5c07461a748143e1ad1931bd0f5054aabde9c306.zip
gdb-5c07461a748143e1ad1931bd0f5054aabde9c306.tar.gz
gdb-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')
-rw-r--r--gdb/testsuite/ChangeLog7
-rw-r--r--gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc4
-rw-r--r--gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp2
3 files changed, 11 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 82496a0..5dc374c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * 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.
+
2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
PR mi/11912
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()
{
diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
index e24019b..cd3f132 100644
--- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
+++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
@@ -66,7 +66,7 @@ verbose "Using $path for data-evaluate-expression" 2
mi_gdb_test "-data-evaluate-expression \"$path\"" \
- "\\^done,value=\"\{a = \[0-9\]*\}\"" \
+ "\\^done,value=\"\{a = 5\}\"" \
"-data-evaluate-expression $path"
mi_gdb_exit