URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using33.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
template <class T>
struct Foo
{
int k (float) {return 0;}
};
template <class T>
struct Baz
{
int k (int) {return 1;}
};
template <class T>
struct Bar : Foo<T> , Baz<T>
{
using Foo<T>::k;
using Baz<T>::k;
};
int main()
{
Bar<int> bar;
return bar.k( 1.0f );
}
Go to most recent revision | Compare with Previous | Blame | View Log