]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.martin / sts_conv.C
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C b/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C
deleted file mode 100644 (file)
index 7717561..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// ecgs-bugs 1999-02-22 14:21, Stefan Schwarzer 
-// sts@ica1.uni-stuttgart.de
-// this code should compile quietly
-
-class CArray 
-{
-public:
-  operator double* (){ return a; }
-  // works if we comment this line:
-  operator double* () const { return const_cast<double *>(a); }
-private:   
-  double      a[2];   
-};
-
-int main(){
-  CArray  a;
-  double *pa = a + 1; // gets bogus error - should convert
-  return 0; 
-}