* gdb.ada/formatted_ref.exp: New testcase. * gdb.cp/formatted-ref.cc: New file. * gdb.cp/formatted-ref.exp: New testcase.