OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [alias3.C] - Blame information for rev 305

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
namespace A{
3
  struct X{};
4
  void f(X&);
5
  extern int i;
6
  namespace a_very_long_namespace_name{
7
    int k;
8
  }
9
}
10
 
11
namespace B = A;
12
namespace B = A;
13
namespace B = B;
14
 
15
namespace avl = A::a_very_long_namespace_name;
16
 
17
void B::f(A::X& x)
18
{
19
  B::f(x);
20
  f(x);
21
  avl::k = 1;
22
}
23
 
24
int B::i = 0;
25
 
26
int main()
27
{
28
  B::X x;
29
  if (B::i)
30
    A::f(x);
31
}

powered by: WebSVN 2.1.0

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