]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/conversion5.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / conversion5.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/conversion5.C b/gcc/testsuite/g++.old-deja/g++.jason/conversion5.C
deleted file mode 100644 (file)
index 303860b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-struct A { };
-struct B: public A {
-  A a;
-  operator A () { return a; }  // WARNING - never used implicitly
-};
-void f (const A&);
-void g()
-{
-  B b;
-  (A) b; // gets bogus error - trying both constructor and type conversion operator
-}