summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net2.C
blob: dfc57e149aa32c41a3abf98b3dd67b10f39ed836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Here is another program from the net.

class B;

class A {			// { dg-message "note" } copy ctor candidate
  private:
    A(B *);			// { dg-message "note" } 
  public:
    A(long);			// { dg-message "note" } 
};

A a(0); // { dg-error "ambiguous" }
// { dg-message "candidate" "candidate note" { target *-*-* } 13 }