Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / p807.C
blob7b343a50f4894126816e7bfd7d12e3e3d7ee7cf0
1 // { dg-do assemble  }
2 // prms-id: 807
4 extern "C" int printf(const char*, ...);
6 class B;
8 class AX
10  protected:
11    int x;
13  public:
14    operator B();
18 class B
20  private:
21    int x;
22  public:
23    B(const AX&);
27 int foo(B& b);                  // { dg-error "" } referenced below
30 int main()
32    AX a;
33    foo(a);  // { dg-error "" } Ambiguous B(a) or a.operator B()  //  See ARM 12.3.2