Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / overload / builtin1.C
blob9f66e336065103b7bd36d05cd31555af37f80286
1 // Test that we don't discard builtin candidates inappropriately.
3 struct B { };
5 struct A {
6   operator int ();
7   operator B ();
8 };
10 void operator+ (B, B);          // { dg-error "" "candidate" }
12 int main ()
14   A a;
15   a + a;                        // { dg-error "" "ambiguous" }