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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [template16.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do assemble  }
// { dg-do assemble  }
// Test that pushing into a namespace for a definition doesn't affect
// Test that pushing into a namespace for a definition doesn't affect
// template instantiations.
// template instantiations.
namespace N {
namespace N {
  template  void f () { }
  template  void f () { }
  template  struct A { friend void f(); };
  template  struct A { friend void f(); };
}
}
namespace M {
namespace M {
  struct B;
  struct B;
}
}
struct M::B: public N::A { };
struct M::B: public N::A { };
 
 

powered by: WebSVN 2.1.0

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