blob: 2f01e16043f20e4b181daa1c564faba2ed3720b2 [file] [log] [blame]
// Test that we don't allow multiple user-defined conversions in reference
// initialization.
// Build don't link:
struct B { };
struct A {
A (const B&);
};
struct C {
operator B ();
};
C c;
const A& ref (c); // ERROR - requires two UDCs