]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.robertl/eb22.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb22.C
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb22.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb22.C
deleted file mode 100644 (file)
index f604a5a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Ambiguous conversion, three candidates:
-// builtin == (int, int), and the two user-defined operators
-// Each one requires a user-defined ICS where another uses builtin conversions,
-// so none is the best viable function.
-
-class MyInt
-{
-public:
-        MyInt(int = 0) {}
-        operator int() const {return 2;}
-};
-
-bool operator==(const MyInt& a, const int& b)
-{                                               // ERROR - candidate
-        return (int)a == b;
-}
-
-bool operator==(const MyInt& a, const MyInt& b)
-{                                               // ERROR - candidate
-        return (int)a == (int)b;
-}
-
-bool f()
-{
-  return 3 == MyInt();                          // ERROR - ambiguous
-}