blob: f62f915663995ad741529a1fbc44dcd5101eac46 [file] [log] [blame]
// { 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;
}