OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.cp/] [nsrecurs.cc] - Rev 227

Compare with Previous | Blame | View Log

namespace A
{
  int ax = 9;
}
 
namespace B
{
  using namespace A;
}
 
namespace C
{
  using namespace B;
}
 
using namespace C;
 
//---------------
namespace D
{
  using namespace D;
  int dx = 99;
}
using namespace D;
 
//---------------
namespace
{
  namespace
  {
    int xx = 999;
  }
}
 
//---------------
namespace E
{
  int ex = 9999;
}
 
namespace F
{
  namespace FE = E;
}
 
namespace G
{
  namespace GF = F;
}
 
//----------------
int main ()
{
  using namespace D;
  namespace GX = G;
  return ax + dx + xx + G::GF::FE::ex;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.