summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p807a.C
blob: 04c9c4867e984a3d0347f69b560b391290d9c82a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// prms-id: 807

// See ARM page 275 Section 12.3.2

extern "C" int printf (const char *, ...);
extern "C" void exit(int);

class B;

class A {
public:
	A(B&);			// { dg-message "note" } fn ref in err msg
};

class B {
public:
	operator A();		// { dg-message "note" } fn ref in err msg
};

B b;	     // { dg-message "candidate" }
A a = b;  // { dg-error "ambiguous" } should fail as it is ambigious.