X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.martin%2Fsts_conv.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.martin%2Fsts_conv.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7717561c5cba64dc5f4512f9d37448b7657f1546;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git 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 index 7717561c..00000000 --- a/gcc/testsuite/g++.old-deja/g++.martin/sts_conv.C +++ /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(a); } -private: - double a[2]; -}; - -int main(){ - CArray a; - double *pa = a + 1; // gets bogus error - should convert - return 0; -}