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++.pt/] [ttp58.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Alex Samuel <samuel@codesourcery.com>
namespace NS
{
template <class T, int V>
struct Base
{
};
template <class T>
struct Z
{
const static int value_ = false;
};
struct Outer
{
template <class T>
struct A :
public Base <T, Z<T>::value_>
{
};
};
template <class T>
void f(T)
{
}
}
template <template <class T> class U>
struct B
{
};
int
main ()
{
B<NS::Outer::A> ba;
f (ba); // Koenig lookup
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log