+2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
+
+ * gdb.mi/mi-var-cp.cc (reference_update_tests):
+ Make sure the variable we're using is in scope.
+ (reference_to_pointer): Likewise.
+
2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
* lib/gdb.exp (gdb_compile_test): New.
x = 567;
/*: mi_varobj_update RX {} "update RX (3)"
:*/
+ /* Dummy assignment to keep 'x' in scope. */
+ x = 444;
/*: END: reference_update :*/
}
int reference_to_pointer ()
{
+ /*: BEGIN: reference_to_pointer :*/
S s, *ptr_s, *& rptr_s = ptr_s;
s.i = 67;
s.j = 89;
ptr_s = &s;
- /*: BEGIN: reference_to_pointer :*/
- return 99;
/*:
mi_create_varobj RPTR rptr_s "create varobj for rptr_s"
mi_check_varobj_value RPTR.public.i 67 "check i member"
mi_check_varobj_value RPTR.public.j 89 "check j member"
:*/
+ return 99;
/*: END: reference_to_pointer :*/
}