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++.pt/] [partial3.C] - Rev 816
Compare with Previous | Blame | View Log
// { dg-do run }
// Test that partial ordering works between conversion ops from different
// classes.
// From Jason Merrill <jason@cygnus.com>
struct A {
template <class T> operator T*() { return 0; }
};
struct B : public A {
template <class T> operator T();
};
int main()
{
B b;
(void*) b;
}