]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/overload12.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / overload12.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload12.C b/gcc/testsuite/g++.old-deja/g++.other/overload12.C
deleted file mode 100644 (file)
index 7e546da..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// Build don't link:
-// Origin: Neil Booth <neilb@earthling.net> from bug #27.
-
-struct A{};
-
-struct B:A{};
-
-struct C:B{};
-
-struct CX
-{
-  C  c;
-
-  operator C&(){return c;}
-};
-
-// viable functions for call below
-void f(A&);
-void f(B&);
-
-int main()
-{
-  CX cx;
-  C  c;
-
-  f(c);   // the standard conversion to B& is better than to A& 
-
-  f(cx);  // after user defined conversion to C&
-  // the standard conversion to B& is better than to A& 
-}