URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [ns18.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
namespace Bname {
class B;
}
template <class T>
class A {
friend class Bname::B;
static const int a = 1;
public:
A() { }
};
namespace Bname {
class B {
int a;
public:
template<class T>
B(const T&):a(T::a) { }
};
}
int
main()
{
A<int> a;
Bname::B b(a);
}