blob: e2f2b71ed7c72bf9b155ecac1d58bcba94021623 [file] [log] [blame]
// { dg-do assemble }
// prms-id: 807
extern "C" int printf(const char*, ...);
class B;
class AX
{
protected:
int x;
public:
operator B();
};
class B
{
private:
int x;
public:
B(const AX&);
};
int foo(B& b); // { dg-message "" } referenced below
int main()
{
AX a;
foo(a); // { dg-error "" } Ambiguous B(a) or a.operator B() // See ARM 12.3.2
}