b14e635ec4
* gdb.cp/nsrecurs.exp: New test. * gdb.cp/nsrecurs.cc: New test program. * gdb.cp/nsstress.exp: New test. * gdb.cp/nsstress.cc: New test program. * gdb.cp/nsdecl.exp: New test. * gdb.cp/nsdecl.cc: New test program. 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> * cp-namespace.c (cp_lookup_symbol_namespace): Added search_parent argument. (cp_add_using): Initialize 'searched' field. (reset_directive_searched): New function. * cp-support.h: Add 'searched' field to using_direct struct. (cp_lookup_symbol_imports): Ditto. * cp-namespace.c (cp_lookup_symbol_imports): Ditto. Perform recursive search. Implement non parent search. * valops.c (value_maybe_namespace_elt): Updated.
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
|
|
namespace A{ int x; }
|
|
namespace B{ int x; }
|
|
namespace C{ int x; }
|
|
namespace D{ int x; }
|
|
namespace E{ int x; }
|
|
namespace F{ int x; }
|
|
namespace G{ int x; }
|
|
namespace H{ int x; }
|
|
namespace I{ int x; }
|
|
namespace J{ int x; }
|
|
namespace K{ int x; }
|
|
namespace L{ int x; }
|
|
namespace M{ int x; }
|
|
namespace N{ int x; }
|
|
namespace O{ int x; }
|
|
namespace P{ int x; }
|
|
namespace Q{ int x; }
|
|
namespace R{ int x; }
|
|
namespace S{ int x; }
|
|
namespace T{ int x; }
|
|
namespace U{ int x; }
|
|
namespace V{ int x; }
|
|
namespace W{ int x; }
|
|
namespace X{ int x; }
|
|
namespace Y{ int x; }
|
|
namespace Z{ int x; }
|
|
|
|
|
|
int main(){
|
|
|
|
using namespace A;
|
|
using namespace B;
|
|
using namespace C;
|
|
using namespace D;
|
|
using namespace E;
|
|
using namespace F;
|
|
using namespace G;
|
|
using namespace H;
|
|
using namespace I;
|
|
using namespace J;
|
|
using namespace K;
|
|
using namespace L;
|
|
using namespace M;
|
|
using namespace N;
|
|
using namespace O;
|
|
using namespace P;
|
|
using namespace Q;
|
|
using namespace R;
|
|
using namespace S;
|
|
using namespace T;
|
|
using namespace U;
|
|
using namespace V;
|
|
using namespace W;
|
|
using namespace X;
|
|
using namespace Y;
|
|
using namespace Z;
|
|
|
|
return 0;
|
|
}
|