forked from Imagelibrary/binutils-gdb
2003-09-25 David Carlton <carlton@kealia.com>
* c-exp.y: Include cp-support.h. Add qualified_type. (yylex): Delete nested type hack; add comments. * cp-namespace.c (cp_lookup_nested_type): New function. * cp-support.h: Declare cp_lookup_nested_type. * eval.c (evaluate_subexp_standard): Call value_aggregate_elt instead of value_struct_elt_for_reference. * valops.c: Include cp-support.h. (value_aggregate_elt): New function. (value_namespace_elt): Ditto. (value_struct_elt_for_reference): Make static. * value.h: Delete declaration of value_struct_elt_for_reference; add declaration for value_aggregate_elt. * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h). (valops.o): Ditto. 2003-09-25 David Carlton <carlton@kealia.com> * gdb.cp/namespace.exp: Tweak comments. Add non-quoted versions of some print tests, where appropriate. Add tests for C::D::cd, E::ce, F::cXfX, G::XgX. * gdb.cp/namespace.cc: Add XgX, cXfX, ce.
This commit is contained in:
@@ -75,6 +75,11 @@ namespace
|
||||
namespace G
|
||||
{
|
||||
int Xg = 10;
|
||||
|
||||
namespace
|
||||
{
|
||||
int XgX = 11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,6 +95,11 @@ namespace C
|
||||
namespace F
|
||||
{
|
||||
int cXf = 7;
|
||||
|
||||
namespace
|
||||
{
|
||||
int cXfX = 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +108,11 @@ namespace C
|
||||
int cc = 2;
|
||||
}
|
||||
|
||||
namespace E
|
||||
{
|
||||
int ce = 4;
|
||||
}
|
||||
|
||||
namespace D
|
||||
{
|
||||
int cd = 3;
|
||||
@@ -118,14 +133,18 @@ namespace C
|
||||
//cc;
|
||||
C::cc;
|
||||
cd;
|
||||
//C::D::cd;
|
||||
E::cde;
|
||||
shadow;
|
||||
//E::ce;
|
||||
cX;
|
||||
F::cXf;
|
||||
F::cXfX;
|
||||
X;
|
||||
G::Xg;
|
||||
//cXOtherFile;
|
||||
//XOtherFile;
|
||||
G::XgX;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user