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.
This commit is contained in:
Jan Kratochvil 2011-08-26 21:11:08 +00:00
parent 3ced3da4a5
commit 5c07461a74
3 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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()
{

View File

@ -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