* 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 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
class A
{
- int a;
+ public:
+ int a;
};
class C : public A
public:
C()
{
+ a = 5;
};
void testLocation()
{
mi_gdb_test "-data-evaluate-expression \"$path\"" \
- "\\^done,value=\"\{a = \[0-9\]*\}\"" \
+ "\\^done,value=\"\{a = 5\}\"" \
"-data-evaluate-expression $path"
mi_gdb_exit