]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/overload35.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload35.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/overload35.C b/gcc/testsuite/g++.old-deja/g++.jason/overload35.C
deleted file mode 100644 (file)
index bb6e436..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// PRMS Id: 9647
-// Build don't link:
-
-class castBug
-{
-public:
-   operator int *();
-   operator const int *() const;
-};
-
-class castBug2
-{
-public:
-   operator const int *() const;
-};
-
-void voidfn(void *);
-
-void test()
-{
-   castBug b;
-   castBug2 b2;
-   voidfn(b);                  // gets bogus error
-   voidfn(b2);                 // ERROR - discarding const
-}