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/] [shadow.cc] - Rev 227

Compare with Previous | Blame | View Log

namespace A
{
  int x = 11;
}
 
int x = 22;
int y = 0;
 
class B
{
public:
  int x;
 
  int
  func()
  {
    x = 33;
    y++; // marker1
 
      {
        int x = 44;
        y++; // marker2
 
          {
            int x = 55;
            y++; // marker3
 
              {
                using namespace A;
                y++; // marker4
 
                using A::x;
                y++; // marker5
              }
          }
      }
  }
};
 
int
main()
{
  B theB;
  return theB.func();
}
 

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.