aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net2.C
blob: ffc14ef2115635eb2bc60a7ce9d4b4cc3138c49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link:
// Here is another program from the net.

class B;

class A {
  private:
    A(B *);			// ERROR - 
  public:
    A(long);			// ERROR - 
};

A a(0); // ERROR - should be ambigious