]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/overload7.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / overload7.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload7.C b/gcc/testsuite/g++.old-deja/g++.other/overload7.C
deleted file mode 100644 (file)
index 57bec8b..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Check that object call works when there are multiple conversion ops
-// returning the same type.
-
-typedef int (*pfn)();
-
-int zero () { return 0; }
-int one  () { return 1; }
-int two  () { return 2; }
-
-struct A {
-  A() { }
-  operator pfn () { return one; }
-  operator pfn () const { return zero; }
-  operator pfn () volatile { return two; }
-};
-
-int
-main ()
-{
-  const A a;
-  return a();
-}